Skip to content

Getting Started with Dhali

Dhali offers pay-per-use payments for websites and APIs. Follow one of our quick-starters to get going:

1. Sell sections of your website

Put a report, a score or an article behind a small payment with one script tag and one <dhali-premium> element. See Premium sections.

2. Send your first off-chain payments

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

3. Learn how to monetise 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 x402 facilitator endpoint from your backend to submit off-chain payments from your users:
    • The verify and settle endpoints are https://x402.api.dhali.io/v2/verify and https://x402.api.dhali.io/v2/settle.

4. 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.