Pay per request
One signature.
Then the paid thing is returned.
Anulus hosts a payment helper on Solana. A seller can charge a tiny amount of hSOL, SOL, or the protocol token for an API call, a file, or a page. The ring on this device sends that asset. SOL on the ring address pays the fee. The money goes to the seller. We never hold it.
How it works
Five steps. No account with us.
- 01
Your app asks for something that costs money.
- 02
The app answers with a small bill: hSOL, SOL, or the protocol token, who gets it, and that it is on Solana.
- 03
The buyer signs that bill in their wallet. One signature. No extra approve step.
- 04
The ring on this device sends the chosen asset. We check the Solana receipt. We never hold the money.
- 05
You return the file or the JSON.
Buyer
Signs the bill. Never talks to our helper URL.
Seller
Checks and settles through us, then returns the paid thing.
Us
Check the Solana receipt. We do not keep the payment.
Try it
Pay a real 0.001 bill
Pay from the ring on this device. If settlement is open, you get a JSON snapshot and a public receipt. VPN, Voice, Mail, Messenger, and Infer still settle with the treasury.
The bill can be hSOL, SOL, or the protocol token once its mint is saved in the admin panel.
Live demo
Pay 0.001 for a snapshot
Pay hSOL, SOL, or the protocol token from the Helius Ring on this device. If that balance is already shielded, it is withdrawn first. The transfer itself is public. When you pay SOL, keep a little extra on the ring address for the network fee.
- Price
- 0.001 hSOL
- Asset
- hSOL
- Settle
- Needs the Helius Rings key
- Network
- Solana
For builders
Point your app at our helper
Helper URL:
What it supports
GET /supported
Check a signature
POST /verify
Send it on-chain
POST /settle
If you sell something
When a request has no payment, reply 402 with a PAYMENT-REQUIRED header. When the next request has PAYMENT-SIGNATURE, POST that payload to /verify, then to /settle. If settle works, return the paid content. Put your own wallet in payTo. The buyer never calls our helper.
// Bill is hSOL, SOL, or the protocol token. The buyer pays from a Helius Ring.
const accepts = {
scheme: "exact",
network: "solana",
amount: "1000000",
asset: "he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A",
payTo: "YOUR_SOLANA_WALLET",
maxTimeoutSeconds: 60,
extra: { name: "hSOL", version: "2" },
};
// No payment yet: reply 402 with PAYMENT-REQUIRED.
// With PAYMENT-SIGNATURE: POST http://localhost:3000/api/x402/verify then /settle.
// The signature is a confirmed Solana transfer of that asset.Network solana · hSOL he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A
If you buy something
Wrap your fetch. The helper on the seller’s server talks to us. Your wallet only signs the bill.
// Open http://localhost:3000/api/x402/demo in the browser. Pay from the ring on this device.
// Shielded hSOL, SOL, or the protocol token is withdrawn first when it covers the bill.
// This is a direct transfer of the asset on the bill.
const res = await fetch("http://localhost:3000/api/x402/demo");
const data = await res.json();Raw HTTP
curl -i http://localhost:3000/api/x402/demo
# 402 comes back with a PAYMENT-REQUIRED header.
# After the buyer signs, send that signature:
curl -i http://localhost:3000/api/x402/demo \
-H "PAYMENT-SIGNATURE: BASE64_PAYLOAD"