Skip to content

Getting Started with Dhali

Dhali offers a flexible, on-demand payment infrastructure for API monetisation. Follow one of our quick-starters to get going:

1. Send you first off-chain payments

Follow our step-by-step guide to send your first off-chain payment today

2. Learn how to monetize your API

Dhali offers two core solutions for enabling API monetization:

  1. (Easy) Integrate with the reverse proxy:
    • Your API becomes accessible through https://run.api.dhali.io/<uuid>.
  2. (More control) Use the charge endpoint from your backend to submit off-chain payments from your users:
    • The charge endpoint is https://charge.api.dhali.io/<uuid>.

Both approaches require the off-chain payment (i.e., the payment claim) to be placed in the Payment-Claim header. See here for more information.

3. Enable your users to create off-chain payments

Add the Dhali payment terminal to your website. This allows your users to generate their own on-demand API keys (called payment claims or off-chain payments) using their Web3 wallet.

Examples

Check out our examples section for step-by-step guides on using popular XRPL APIs through Dhali.