Solana
- Receipts anchored on mainnet
- …
- Payers that are not team keys
- …
- USDC declared in those receipts
- …
- Last receipt
- …
- npm downloads, last week (package)
- …
Chains
The same receipt, signed by whoever pays and checkable by anyone, on Stellar, Solana and Avalanche. This page is the one place that says what works where.
| Feature | Stellar | Solana | Avalanche |
|---|---|---|---|
| Payer-signed receipts, anchored to IPFS by Audit Trail | Yes: Mainnet | Yes: Mainnet, bound to the exact USDC transfer | Yes: Mainnet, bound to the exact USDC transfer |
| Check a receipt in the browser | Yes: nirium.xyz/verify | ||
| Check a receipt from a terminal | Yes: npx nirium-cli verify <CID> | Yes: npx -p nirium-solana nirium-verify-svm receipt.json | Yes: npx -p nirium-avalanche nirium-verify-evm receipt.json |
| Pay and charge per request with x402 | Yes: Mainnet | Yes: Mainnet, settled by an independent facilitator (PayAI) | Yes: Mainnet, settled by an independent facilitator (PayAI) |
| Refuse a payment before it is signed (pre-sign policy) | Yes: In the library | Yes: In the library | Yes: In the library |
| Receipts for refused payments (DENY, WAIT) | Yes: As Audit Trail receipts | Soon: In the code, in the next npm release | Soon: In the code, in the next npm release |
| Reporting: receipts, payers and USDC declared, per chain | Yes: Mainnet | Yes: Mainnet | Yes: Mainnet |
| An x402 market selling network data at $0.01 | Yes: Paid endpoints on the Nirium node | Yes: Mainnet | Yes: C-Chain mainnet |
| Treasury and Payouts | No: Not on this chain | No: Not on this chain | |
| MCP server for agents | Yes: nirium-mcp | No: Not yet | No: Not yet |
| Package | Yes: nirium (npm, PyPI) | Yes: nirium-solana | Yes: nirium-avalanche |
Live, each chain on its own and never added to another. Stellar's numbers are in /stats.
Charge for a route, pay it under your own policy, and get a receipt bound to the exact USDC transfer, signed by the payer. Test tokens only.
// npm i nirium-solana@0.2.0 express @solana/kit
import express from "express";
import { readFileSync } from "node:fs";
import { createKeyPairSignerFromBytes } from "@solana/kit";
import { x402Serve, createX402Fetch, createRulesPolicy, settlementOf, bindReceipt, verifyReceipt, DEVNET } from "nirium-solana";
const PAY_TO = process.env.PAY_TO; // your wallet that receives USDC
const signer = await createKeyPairSignerFromBytes(Uint8Array.from(JSON.parse(readFileSync(process.env.PAYER_KEYPAIR, "utf8"))));
// 1. Charge: one route, $0.01 in USDC on devnet, settled by PayAI
const app = express();
app.use(x402Serve({ payTo: PAY_TO, network: DEVNET, routes: { "GET /data": { price: "$0.01", description: "Example data" } } }));
app.get("/data", (_req, res) => res.json({ ok: true }));
const server = app.listen(4021);
// 2. Pay: your own policy decides before anything is signed
const feePayers = (await (await fetch("https://facilitator.payai.network/supported")).json()).signers["solana:*"];
const pay = createX402Fetch({
signer, network: DEVNET, maxAmountPerPayment: "10000",
policy: createRulesPolicy({ maxAmount: "10000", allowPayTo: [PAY_TO], allowFeePayers: feePayers }),
});
const url = "http://localhost:4021/data";
const res = await pay(url, { headers: { "X-Nirium-Ref": "order-123" } }); // the ref goes on-chain as the Memo
// 3. Receipt: bound to the exact USDC transfer, signed by the payer, checked against the chain
const receipt = await bindReceipt({ tx: settlementOf(res).transaction, network: DEVNET, ref: "order-123", resource: url, signer });
const check = await verifyReceipt(receipt);
console.log(check.ok ? "VALID" : "INVALID", `${check.checks.filter((c) => c.ok).length}/${check.checks.length}`, settlementOf(res).transaction);
server.close();Run verbatim with nirium-solana 0.2.0 on devnet, 27 Nov 2026: cbagt3pSgv…, VALID 27/27.
Save it as receipt.json and send it to the Nirium node. It checks the hash and the payer's signature and returns a CID.
curl -X POST https://nirium-agent.fly.dev/api/audit/binding \
-H 'content-type: application/json' --data-binary @receipt.jsonFrom a terminal, against the chain, or by CID on this chain's explorer page.
npx -p nirium-solana nirium-verify-svm receipt.jsonRefused-payment receipts (DENY, WAIT) are in the code and come in the next npm release. Source and full docs: nirium-protocol/nirium-solana
On Solana and Avalanche, the only mainnet payments so far are our own test payments. Testnet demos (Solana devnet, Avalanche Fuji) use test tokens only.
Non-custodial on every chain: the payer's own key signs, and Nirium never holds funds. A receipt records who declared a payment and what it was for; it does not prove that goods or a service were delivered.