01
Create your off-chain receive address
- 1. Connect your wallet in the asset manager
Asset manager
- 2. Select "My assets" and create a new asset
- 3. Click your new asset to see your off-chain address
02
Create an off-chain payment
- 1. Open your wallet in the asset manager
Asset manager
- 2. Deposit funds into your payment channel
- 3. Create an off-chain payment (a base64 string) and take a copy
$ pip install dhali-py
======================
from dhali import DhaliChannelManager
from xrpl.wallet import Wallet
wallet = Wallet.from_secret(seed=seed)
manager = DhaliChannelManager(wallet)
manager.deposit(1_000_000) # deposit 1 XRP into payment channel
off_chain_payment = manager.get_auth_token()
$ npm install dhali-js
======================
const { Wallet } = require('xrpl')
const { DhaliChannelManager, ChannelNotFound } = require('dhali-js')
const wallet = Wallet.fromSeed(seed)
const manager = new DhaliChannelManager(wallet)
await manager.deposit(1_000_000) // deposit 1 XRP into payment channel
offChainPayment = await manager.getAuthToken()
03
Send off-chain payments to yourself
$ curl -X POST -H "Content-Type: application/json" \
-d '{"paymentHeader": "$OFFCHAIN_PAYMENT"}' $OFFCHAIN_ADDRESS
import requests
r = requests.post(OFFCHAIN_ADDRESS, json={"paymentHeader": OFFCHAIN_PAYMENT})
const res = await fetch(OFFCHAIN_ADDRESS, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ paymentHeader: OFFCHAIN_PAYMENT })
});
04
Settle on-chain when you’re ready
- 1. Enter the asset manager
Asset manager
- 2. Select "My assets" and select your asset
- 3. View your earnings, your payments will settle nightly
Our integrations
Bithomp: Accessing APIs using payment channels.
Our users
Here's what they said.
Dhali made is great to work with and made it really easy to set up nanopayments for our APIs.
Dhali is a great marketplace for developers and projects that are wanting to monetize their APIs.
Navigation was simple and straight to the point; didn't have to be a rocket scientist to understand it.
Pricing
Usage-based, chain-agnostic pricing.
If proxying, how long does your API take to respond to a request?
ms
What will you charge for your API?
Per request
Per second














