Sequence Diagram
Key Interactions
Resource Server ↔ Facilitator
The resource server makes two API calls to the facilitator:- POST /accepts - Retrieves enriched payment requirements before returning 402 to client
- POST /settle - Validates and executes payment after receiving client’s payment proof
- Hold cryptocurrency or private keys
- Understand blockchain transaction formats
- Interact with blockchain RPC endpoints
- Manage gas fees or transaction signing
Client ↔ Facilitator
The client doesn’t directly communicate with the facilitator. All interaction happens through:- The 402 response body (containing enriched requirements from facilitator)
- The X-PAYMENT request header (containing payment proof for facilitator)
Facilitator ↔ Blockchain
The facilitator handles all transaction settlement with blockchain networks:- Solana: Co-signs transactions as fee payer and submits to Solana RPC
- EVM: Calls
transferWithAuthorizationon token contracts and pays gas