x402 Live Demo
Pay $0.01, unlock a resource.
This page makes a live call to /api/v1/x402-demo/premium. The server answers with HTTP 402 Payment Required. You send a tiny USDC transfer, submit the proof, and the server returns the content. No account, no setup — just HTTP + a wallet.
Safe to click — you'll see the 402 response before paying.
How it works
- Browser GETs
/api/v1/x402-demo/premium. Server returns HTTP 402 with a JSON body describing payTo, amount, asset, resource. - You send 0.01 USDC on-chain to the returned address. Solana takes ~400ms and costs ~$0.00025 in fees.
- Browser retries with
X-Paymentheader containing base64(JSON) of your transaction hash. - Server reads the header, calls the Inzi facilitator to verify the tx on-chain (recipient, token contract, amount, confirmations), and returns 200 with the resource.
Build this into your own API with x402-express middleware or the @inzi/x402 SDK pointed at our facilitator.