Skip to content

Introduction

Dhali exists to fix the internet’s missing payment layer, so value can move as freely and natively as data.

Dhali is pay-per-use payments for websites and APIs, built on open technology like the x402 payment protocol. It lets you charge per read and per call, instead of relying on accounts, subscriptions, or long-lived API keys:

  • Premium sections let websites and publishers sell individual sections of a page, such as a report or an article. Visitors pay from their own wallet in a click.
  • API payments let APIs and AI agents charge for every call, through x402 or with Dhali as a reverse proxy in front of your API.

Both run on the same payment rail and accept XRP, XAH, ETH, USDC and RLUSD.

What differentiates Dhali is how those payments are executed. Dhali uses blockchain-enabled payment channels to process transactions off-chain. This avoids on-chain latency and gas costs, allowing high-frequency, low-value payments to be sent in real time while still inheriting the security guarantees of the underlying blockchain.

For APIs, users generate payment authorisations on demand and embed them in request headers. These look like normal request headers, but instead of representing identity, they represent a cryptographically authorised micro-payment. Authentication is therefore replaced by verifiable, real-time payment embedded directly in the request:

curl_image

Why Dhali?

Dhali applies x402 with off-chain payment channels so access can be metered and settled at protocol speed, not blockchain speed.

  • Readers and API users:

    1. Pay only for what they use — no subscriptions or pre-commitment.
    2. Obtain instant access without registration, onboarding, or contract flow.
    3. Benefit from high-frequency nano-payments without blockchain confirmation delays or fees.
    4. Interact with APIs globally using protocol-native payments rather than jurisdiction-bound banking rails.
  • Website owners and publishers:

    1. Sell a single section of a page, not a subscription, with one script tag and one HTML element.
    2. Get paid for every unlock without running any payment code, keys or webhooks.
    3. Keep readers' wallets safe: approvals stay inside a Dhali frame that no script on your page can reach.
  • API creators:

    1. Monetise endpoints directly through the x402 standard without building custom billing systems.
    2. Enable real-time usage charging via off-chain settlement rather than batching or invoicing.
    3. Avoid on-chain congestion, gas volatility, and transaction latency.
    4. Eliminate payment failures caused by cards, intermediaries, or regional restrictions.
    5. Integrate flexibly: run Dhali as a reverse proxy or call the charging endpoint inside existing services.