How it works
A step-by-step walkthrough of the Coston2 x402 testnet flow.
Connect wallet
Connect an EVM-compatible wallet (MetaMask, Coinbase Wallet, etc.) using EIP-1193. No account registration required.
Switch to Flare Coston2
The app prompts you to switch to or add Flare Coston2 (Chain ID 114). The network config is added automatically if not already in your wallet.
Get C2FLR gas
You need a small amount of C2FLR (Coston2 native token) for transaction fees. The app links you to the Coston2 faucet and polls your balance until funded.
Claim MockUSDT0
MockUSDT0 is a test token deployed on Coston2 that mimics the USDT0 payment flow. You mint 1.0 MockUSDT0 directly from the contract. The payment requires 0.001.
Pay with x402
The app constructs an x402/EIP-3009-style payment payload and calls the X402Facilitator contract. The facilitator verifies the payload, settles the transfer, and records the payment on-chain.
Backend verification
After settlement, the x402test backend independently verifies the settlement transaction on Coston2. It checks the facilitator record, confirms payer, recipient, token, and amount. The backend never trusts client-submitted values.
Resource unlock
After verification, the backend issues a short-lived signed access token. The research brief (PDF and Markdown) becomes available for download or web reading.
ProofRails receipt
The backend creates a ProofRails receipt record linking the payment to the resource. The receipt includes payer, payee, token, amount, settlement hash, payment purpose, and a verifiable evidence bundle. You can verify it at app.proofrails.com.
Important caveats
- ! This is Coston2 testnet only. MockUSDT0 and C2FLR have no real value.
- ! The deployed MockUSDT0 does not enforce real EIP-712 signature recovery. This is acceptable for the Coston2 UX test but not representative of production token security.
- ! This demo does not claim to prove production USDT0 settlement or production-grade EIP-3009 enforcement.