XRPSCAN
HomeMetricsValidatorsAmendments
  • 📖Build with XRPSCAN
  • 📘API Documentation
    • Introduction
    • Pricing
      • Pay as you Go (PAYG)
    • API Concepts
      • Pagination
    • Account
      • Account info
      • Activations
      • Ancestry
      • Assets
      • Deposit Preauths
      • DEX Orders
      • Escrows
      • Issued tokens
      • Issued token balance
      • NFTs
      • Settings
      • Trustlines
      • Transactions
      • Xumm KYC status
    • Transaction
      • Transaction info
    • Ledger
      • Ledgers
      • Ledger info
      • Transactions
    • NFT
      • NFT info
    • AMM
      • AMM info
      • Pools
    • Object
      • Object info
    • Amendment
      • Amendments
      • Amendment info
    • Validator
      • Registry
      • Validator info
      • Report
    • Node
      • Nodes
      • Node info
    • Network
      • Fee
      • Server info
      • Server versions
    • Account Name
      • Well known accounts
    • Balance
      • Balances
    • Fact
      • Facts in namespace
      • Fact
    • Metrics
      • Metrics
    • Health
      • Ping
  • 📗Help
    • Integration guide
    • Validator
    • Contribute
    • Privacy policy
    • Contact us
  • 📙FAQs
    • How to report scams
Powered by GitBook
On this page
  • PAYG API base URL
  • Full URL
  • How to Pay as you Go
  • Example
  • Dhali documentation
  1. API Documentation
  2. Pricing

Pay as you Go (PAYG)

PreviousPricingNextAPI Concepts

Last updated 2 months ago

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 . Click the link below to access Dhali payment terminal.

PAYG API base URL

Base URL for accessing XRP Ledger mainnet is:

https://xrpscan.dhali.io

Full URL

To query ledger index 93957385, use:

https://xrpscan.dhali.io/api/v1/ledger/93957385

How 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 XRP for your needs.

  • Click "Get payment claim" to authorize spending your deposit.

  • Copy PAYMENT_CLAIM value and save it securely. All API requests must use this payment claim to access the API.

  • Add PAYMENT_CLAIM to 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/ping

Dhali documentation

📘
Dhali
LogoDhali Payment Terminal
LogoGetting started - Dhali docs