Nexus speaks the standard x402 protocol for USDC on Algorand, so any x402 client can pay a Nexus-protected endpoint, and any API can charge agents per call.
import { x402Client, wrapFetchWithPayment } from '@x402/fetch';
import { ExactAvmScheme, toClientAvmSigner } from '@x402/avm';
const client = x402Client.fromConfig({ schemes: [{ network: 'algorand:*', client: new ExactAvmScheme(toClientAvmSigner(process.env.AVM_PRIVATE_KEY)) }] });
const res = await wrapFetchWithPayment(fetch, client)('https://nexus-x402-shop.vercel.app/v1/preflight?address=<address>');
import { x402Paywall, ALGORAND_MAINNET_CAIP2, USDC_MAINNET_ASA_ID } from '@nexus/agent';
app.get('/data', x402Paywall({ payTo: MY_ADDRESS, network: ALGORAND_MAINNET_CAIP2, assetId: USDC_MAINNET_ASA_ID, priceCents: 5, algod }), handler);
Self-settling (no facilitator, no fee) or through a facilitator such as GoPlausible. Verified on-chain, single use, with spend caps on the paying side.
/v1/pay-safety?address=: 2 cents. Before you pay an address: opted in? frozen? rekeyed? account age, recent activity, asset issuer powers, with a verdict and reasons./v1/preflight?address=: 1 cent. Will a USDC transfer to this address land?/v1/tx-receipt?txid=: 1 cent. A chain-verified receipt for a transaction.add_payments prompt) for coding agents.Status: these three endpoints were paid for on mainnet with the official x402 client on 2026-12-03. The pay-safety verdict is a heuristic over public on-chain facts, with no scam database.