X402 Micropayments
What is X402?
How It Works with Switchboard
┌─────────────────────────────────────────────────────────────────────────┐
│ X402 + Switchboard Flow │
└─────────────────────────────────────────────────────────────────────────┘
┌──────────┐ 1. Derive X402 ┌────────────────┐
│ Your │ payment headers │ X402 Manager │
│ App │ ────────────────────────► │ (Faremeter) │
└──────────┘ └────────────────┘
│ │
│ 2. Pass headers as │
│ variable overrides │
▼ │
┌──────────┐ │
│Crossbar │ ◄─────────────────────────────────┘
│ │ X-PAYMENT 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
Faremeter Wallet
Variable Overrides
Quote Accounts
Use Cases
Next Steps
Last updated