Skip to main content

How It Works


Request Payment Challenge

402 Response:

Submit Payment Proof


x402 Pricing


Replay Protection

The nonce in every x402 proof is stored in a 24-hour cache. Replay attempts return:

Fund Escrow via x402

This calls lockUSDCViaX402() on the escrow contract directly.

Middleware Configuration

To enable x402 on your own server:
Protected routes return 402 for unauthenticated calls and pass through for valid payment proofs.