How it works

A step-by-step walkthrough of the x402 payment flow on Flare.

01

Connect your wallet

Connect any EVM-compatible wallet (MetaMask, WalletConnect, etc.) to get started.

02

Switch to Flare

The app prompts you to switch to or add Flare (Chain ID 14). The network config is added automatically if not already in your wallet.

03

Sign and settle

The app builds an x402 payment payload for 0.001 USDT0. Your wallet presents the settlePayment transaction. On confirmation, the facilitator atomically transfers the USDT0 to the recipient and records the payment.

04

Backend verification

After settlement, the backend independently verifies the settlement transaction on Flare. It checks the facilitator record, confirms payer, recipient, token, and amount. The backend never trusts client-submitted values.

05

Unlock and receipt

If verification passes, the resource unlocks instantly. The backend calls ProofRails to create an evidence receipt linking the payment to the resource. The receipt is anchored on-chain for verifiability.

Important notes

  • This is Flare mainnet. USDT0 and FLR have real value.
  • The payment amount is 0.001 USDT0 (approximately $0.001).
  • You need a small amount of FLR for transaction gas fees.
  • All receipts are anchored on-chain and verifiable through ProofRails.