Pay as you Go (PAYG)
With our Pay as you Go pricing, pay for our API based on how much you need. Our Pay as you Go offering is powered by Dhali. Click the link below to access Dhali payment terminal.
PAYG API base URL
Base URL for accessing XRP Ledger mainnet is:
https://xrpscan.dhali.ioFull URL
To query ledger index 93957385, use:
https://xrpscan.dhali.io/api/v1/ledger/93957385How to Pay as you Go
Log into Dhali Payment Terminal, follow the instructions shown in the app to create a payment channel.
Click "Deposit" to deposit enough
XRPfor your needs.Click "Get payment claim" to authorize spending your deposit.
Copy
PAYMENT_CLAIMvalue and save it securely. All API requests must use this payment claim to access the API.Add
PAYMENT_CLAIMto your request headers:
$ PAYMENT_CLAIM='<PAYMENT-CLAIM-VALUE>'
$ curl -H "Payment-Claim: $PAYMENT_CLAIM" https://xrpscan.dhali.io/<API_ENDPOINT>Monitor your usage via the Payment Terminal. Authorize more funds as needed.
Example
$ PAYMENT_CLAIM='nue9eith1Cai......xi4toh8ohwfQ=='
$ curl -H "Payment-Claim: $PAYMENT_CLAIM" https://xrpscan.dhali.io/api/v1/pingDhali documentation
Dhali SDKs
Last updated