x402 payment test API: check a wallet and x402 client, with a signed receipt and a health ping
Updated 2026-11-10
The cheapest paid call we sell, for checking that a wallet and an x402 client work end to end. POST https://tanod.dev/v1/x402/pay-test costs USD 0.001, paid in USDC on Base, Polygon, Solana, BNB Chain or Arbitrum through x402. There is no free tier: the call exists to test a real payment. It is also the MCP tool test_x402_payment at https://tanod.dev/mcp.
What you get back
What the Tanod gate saw: payer, network, scheme, amount_atomic and amount_usd, asset, the facilitator, the settlement transaction with an explorer_url, and timings_ms for verify and settle. It also returns a UTC timestamp signed with an Ed25519 key, and a link to the catalog of other Tanod tools.
curl -s -X POST https://tanod.dev/v1/x402/pay-test \
-H "Content-Type: application/json" \
-d '{"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"}'
Use an x402 client (it handles the 402 and signs the payment). The body is optional: send {}, nothing, or a sha256 of 64 hex characters. The hash is signed together with the time, as a simple proof that something with that hash existed then.
Check a receipt
The public key is at https://tanod.dev/.well-known/tanod-receipt-key. The signature covers tanod-receipt-v1, a newline, and the receipt object as canonical JSON (keys sorted, no spaces). To check one without code, POST https://tanod.dev/v1/x402/pay-test/verify with {"receipt": {...}, "signature": "..."}; it is free.
Use it as a health ping
It is safe to call on a schedule. The reply carries next_suggested_check_s (300). A passing call shows the wallet has funds, the payment signs, the facilitator answers and the receipt signer works; each call costs USD 0.001.
Agents that pay for tools often run a paid canary: a scheduled call that proves their own payment path still works before a real purchase fails. One seller on Moltbook reported that such a canary, paying its full price every 4 hours, was its only repeat customer. Pointed here instead, a canary costs USD 0.001 a check: every 4 hours is about 180 calls and USD 0.18 a month, every hour about USD 0.72, and every 5 minutes (the suggested minimum) about USD 8.64. A failure tells you which step broke: funds, signing, the facilitator or the receipt. More on schedules and costs: x402 ping as a health check.
Before mainnet: test your client on Base Sepolia
Get a new x402 client's signing right on a testnet first, where the money is free. Base Sepolia is eip155:84532, and its USDC contract is 0x036CbD53842c5426634e7929541eC2318f3dCF7e (6 decimals). Circle's faucet at faucet.circle.com hands out testnet USDC, and the public facilitator at https://x402.org/facilitator settles Base Sepolia payments. With the exact scheme (EIP-3009), the wallet needs USDC but no ETH for gas, because the facilitator submits the transfer. Test against any seller that offers Base Sepolia, or run the x402 example server locally. Tanod's routes take mainnet payments only.
Once the testnet flow works, one call to this route at USD 0.001 checks the real thing: mainnet funds, the production key, a live facilitator and a signed receipt.
When a payment fails
A payment that fails is never settled, so nothing is charged. The 402 you get back names the reason where the local checks or the facilitator can tell: wrong network, amount below the price, an expired authorisation (validBefore), a wrong payTo or asset, a bad signature or too little balance.
Limits
- The receipt shows what Tanod's gate saw. The signature shows Tanod issued it at that time; it does not show a submitted hash is genuine.
- A bad
sha256or an unknown field is a 422 and is not charged.
Use it from Claude without writing code: in claude.ai or Claude Desktop, add https://tanod.dev/mcp/agents?via=x402-payment-test-api as a custom connector (steps), then ask in plain words, for example "Test that my wallet and x402 client can pay a call, and give me the receipt." test_x402_payment has no free tier; calls need an x402 payment, which these clients can make.
Related guides: did my x402 payment settle?, x402 price benchmark API, x402 listing lint API. Updated 2026-11-10. All guides, or back to tanod.dev. Results are automated.