Overview
A facilitator is a payment settlement server that acts as an intermediary between resource servers (APIs) and clients in the x402 payment protocol. It handles the blockchain-specific logic for validating and executing payments, allowing resource servers to remain payment-agnostic.Try a facilitator
Use the Corbits facilitator:
https://facilitator.corbits.devWhy Facilitators Exist
Facilitators solve several critical problems in the x402 payment protocol:1. Abstract Blockchain Complexity
Resource servers (your APIs) don’t need to understand blockchain-specific details like:- Transaction formats and signing
- Gas fee management
- Network-specific parameters (blockhashes, chain IDs, EIP-712 domains)
- Token contract interfaces
2. Handle Gas Payments
The facilitator sponsors transaction fees on behalf of clients:- Solana: Acts as the fee payer, co-signing transactions to pay network fees
- EVM: Pays gas costs for executing
transferWithAuthorizationusing EIP-3009
3. Validate Payment Proofs
Before settling on-chain, the facilitator performs extensive validation:- Verifies payment amounts match requirements
- Checks signatures and authorization validity
- Prevents clients from attempting to steal facilitator funds
- Validates transaction parameters (compute limits, priority fees, etc.)
4. Enable Multi-Chain Payments
A single facilitator can support multiple blockchains and payment methods simultaneously through a pluggable handler architecture.The Role in x402
In the x402 payment protocol, the facilitator sits between three parties:- Resource Server (Merchant) - Hosts protected content/APIs
- Facilitator - Validates and executes payments
- Client (User) - Pays to access resources