X402 Micropayments
What is X402?
How It Works with Switchboard
┌─────────────────────────────────────────────────────────────────────────┐
│ X402 + Switchboard Flow │
└─────────────────────────────────────────────────────────────────────────┘
┌──────────┐ 1. Derive ┌────────────────┐
│ Your │ PAYMENT-SIGNATURE │ x402 v2 Client │
│ App │ ────────────────────────► │ │
└──────────┘ └────────────────┘
│ │
│ 2. Pass headers as │
│ variable overrides │
▼ │
┌──────────┐ │
│Crossbar │ ◄─────────────────────────────────┘
│ │ PAYMENT-SIGNATURE header
└──────────┘
│
│ 3. Fetch oracle update
│ with auth headers
▼
┌──────────┐ 4. Authenticated ┌────────────────┐
│ Oracle │ HTTP request │ Paywalled │
│ (TEE) │ ────────────────────────► │ RPC/API │
└──────────┘ └────────────────┘
│ │
│ 5. Return signed │
│ oracle data │
▼ │
┌──────────┐ │
│ Quote │ ◄─────────────────────────────────┘
│ Account │ Verified data
└──────────┘Key Concepts
x402 v2 Client
Variable Overrides
Quote Accounts
Use Cases
Next Steps
Last updated