A working, machine-payable API: every request costs $0.01 USDC on Base, charged over plain HTTP with the x402 protocol. Pay the 402, and the API issues a hash-chained Aurora Proof certificate of your record — sealed, ordered, tamper-evident. No accounts, no API keys, no invoices: the payment is the authentication.
Endpoint live Network: base-sepolia Facilitator: x402.orgfetching…
// npm i x402-fetch viem
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(PRIVATE_KEY);
const payFetch = wrapFetchWithPayment(fetch, account);
const r = await payFetch("https://aurorapathways.xyz/api/x402-certify", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ subject: "Invoice #114 — paid in full" }),
});
console.log(await r.json()); // → { ok, certificate: { n, seal, tx, … } }
curl -s -X POST https://aurorapathways.xyz/api/x402-certify | jq # → 402 with accepts[]: scheme, network, asset (USDC), amount, payTo
Runs on Base Sepolia with the open x402.org facilitator — the exact same code flips to Base mainnet by switching two environment values (network + CDP facilitator credentials). Built by Aurora Pathways — the same Proof chain that seals certificates for our client platforms.