a2x · payment gate
Delegated x402 payments
When a client agent cannot pay an x402-protected resource itself, it asks this gate to mint a user code, then sends the user here to sign the payment with their own browser wallet extension — MetaMask, Rabby, Coinbase Wallet, and any other EIP-6963 wallet. No sign-up, no login.
Flow (RFC 8628-style)
- 1. Client posts the x402
PaymentRequirementsto/api/v1/sessionswith a bearer API key. - 2. Gate returns a
user_code+verification_uri_complete. - 3. Client shows the URL to the user and polls
/api/v1/sessions/<user_code>. - 4. User opens the URL, signs an EIP-3009
TransferWithAuthorization, and the gate forwards it to the x402 facilitator to verify + settle. - 5. Polling client receives the settlement receipt.