01
Generate your off-chain 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 your off-chain payment
$ curl -X POST -H 'Payment-claim: $OFFCHAIN_PAYMENT' $OFFCHAIN_ADDRESS
import requests
r = requests.post(OFFCHAIN_ADDRESS, headers={"Payment-claim": OFFCHAIN_PAYMENT})
const res = await fetch(OFFCHAIN_ADDRESS, { method: "POST", headers: { "Payment-claim": 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
Sending payments…
0/0 sent
Our integrations
Bithomp: Accessing APIs with nano-payments.
Why?
We are faster, cheaper, more flexibile, and transparent.
High-Frequency Payments
Process thousands of payments per second for any use case.Simple integration
Use our reverse proxy or integrate our charging endpoint.Reduce costs by 75%
Efficient, layer-2 blockchain transactions.No sign-ups or subscriptions
Giving an on-demand option increases conversions.Authenticate-by-payment
No more API keys, just allow your users to pay.Privacy and security
Industry-leading blockchain security.
watch
thumb_up
monetization_on
public
check
lock
Our users
Here's what they said.
Dhali made it really easy to set up nanopayments for our APIs.
Dhali is a great marketplace for developers and projects that want to monetize their APIs.
Navigation was simple and straight to the point; didn't have to be a rocket scientist to understand it.
Pricing
To keep costs down, we calculate our pricing dynamically.
On average, how long does your API take to respond to a request?
ms
What will you charge for your API?
XRP
Per request
Per second
Want to find out more?
We'd love to hear from you.
Thank you!
Invalid email address