Visit x402scan for a complete, up-to-date directory of all facilitators.
Overview
x402 is designed to work across multiple blockchain networks, with different levels of support depending on the facilitator being used. The protocol itself is network-agnostic, but facilitators need to implement network-specific logic for payment verification and settlement. x402 offers three facilitator models for EVM and Solana networks:CDP‑hosted (recommended)
• Production deployments
• Compliance/KYT requirements
• x402 Bazaar auto‑discovery
• Optional SLAs
• Compliance/KYT requirements
• x402 Bazaar auto‑discovery
• Optional SLAs
Community‑maintained
• Rapid prototyping
• SDK examples/tests
• No API keys required
• SDK examples/tests
• No API keys required
Self‑hosted
• Full control/private infrastructure
• Custom networks/policies
• Non‑listed chains
• Custom networks/policies
• Non‑listed chains
This is the official Coinbase Developer Platform (CDP) documentation. Community-maintained documentation can be found at x402.gitbook.io/x402.Need more help? Join the x402 Discord for the latest updates.
Supported facilitators
Network support in x402 depends on which facilitator you use:| Facilitator | Networks Supported | Production Ready | Requirements |
|---|---|---|---|
| Community-maintained | Base and Solana (testnet only) | ❌ Testnet only | None |
| CDP-hosted | Base and Solana | ✅ | CDP API keys |
| Self-hosted | Any EVM or Solana network | ✅ | Additional setup |
All facilitators support any EIP-3009 compatible token on their supported networks.
CDP-hosted (recommended)
The CDP-hosted facilitator is the recommended way to get started with x402. It is production-ready and has best-in-class KYT/OFAC compliance checks.- Supports: Base, Base Sepolia, Solana, Solana Devnet
- Notes: Production-ready facilitator with best-in-class KYT/OFAC compliance checks. Fee-free USDC settlement. Requires CDP API keys for mainnet use.
- Requirements: CDP account and API keys from cdp.coinbase.com, see Quickstart for Sellers: Running on Mainnet for details.
- Unique Benefits:
- Enterprise-grade compliance and security
- Direct integration with CDP ecosystem
- Priority support and SLAs available
- Automatic service discovery in x402 Bazaar
Community-maintained facilitator
The Community-maintained facilitator is recommended for testing and development. It is the default facilitator in the x402 packages and requires no setup.- Supports: Base Sepolia, Solana Devnet
- Notes: Recommended for testing and development. This is the default facilitator in the x402 packages and requires no setup.
Self-hosted
Run your own facilitator for full control and customization. Supports networks like Avalanche, Polygon, Arbitrum, and other EVM-compatible chains.- Supports: Any EVM network, Solana networks
- Notes: Run your own facilitator for full control and customization. Supports networks like Avalanche, Polygon, Arbitrum, and other EVM-compatible chains.
- Setup: See Adding support for new networks below
Token support
Facilitators support networks, not specific tokens.| Token Type | Network | Configuration |
|---|---|---|
| USDC (default) | EVM and Solana | Price strings (e.g., "$0.01") |
| Custom ERC-20 with EIP-3009 | EVM | TokenAmount with EIP-712 details |
| SPL tokens | Solana | No EIP-712 required |
| Token-2022 | Solana | No EIP-712 required |
Configuring custom EIP-3009 tokens
Configuring custom EIP-3009 tokens
To use a custom EIP-3009 token on EVM, you need:Why EIP-3009?
- Token contract address
- EIP-712 name - Read from the
name()function on Basescan - EIP-712 version - Read from the
version()function on Basescan
- Gasless transfers (facilitator sponsors gas)
- Signature-based authorization (off-chain signing)
- One-step payments (no separate approvals)
Solana token specifics
Solana token specifics
- Token programs:
TOKEN_PROGRAM_ADDRESS(SPL),TOKEN_2022_PROGRAM_ADDRESS(Token-2022) - Fee sponsorship: Facilitator provides
feePayerinpaymentRequirements.extraand signs the transaction to cover fees - No EIP-712: Unlike EVM, Solana tokens don’t require EIP-712 configuration
Adding support for new networks
There are two ways to add support for new EVM networks in x402:Option 1: Contributing to x402 packages
You can add official network support by submitting a PR to the x402 repository. This makes your network available to all x402 users.Files to modify
-
typescript/packages/x402/src/types/shared/evm/config.tsAdd your network’s chain ID and USDC address: -
typescript/packages/x402/src/types/shared/network.tsAdd your network to the schema and mappings: -
typescript/packages/x402/src/types/shared/evm/wallet.ts- UpdategetChainFromNetworkfunction Add your network to thegetChainFromNetworkfunction to map your network string to the viem chain object:
Key requirements
- Network key: Use a consistent network identifier (e.g.,
avalanche-fuji) across all files - Viem chain: Your network must be available in viem/chains or you’ll need to define it manually
- USDC address: Must be EIP-3009 compatible (has
transferWithAuthorizationfunction) - Chain ID: Use your network’s official chain ID in the config
- Consistency: Ensure the network name matches across
NetworkSchema,SupportedEVMNetworks,EvmNetworkToChainId, and thegetChainFromNetworkswitch statement
Option 2: Running your own facilitator
If you need immediate support or want to test before contributing, you can run your own facilitator. Video Guide: Adding EVM Chains to x402Prerequisites
- Access to an RPC endpoint for your target network
- A wallet with native tokens for gas sponsorship
- The x402 facilitator code
Additional network support
If you need support for networks not currently available through CDP’s facilitator:- Submit a request: Contact CDP support or post in the x402 Discord to express interest in specific networks
- Run your own facilitator: See the self-hosting guide above for immediate support of any EVM network
- Contribute to x402: Submit a PR to add official support for new networks in the x402 packages
Need help with network integration?Join the x402 Discord community or check the x402 GitHub repository.
What to read next
- Quickstart for Sellers: Start accepting payments on supported networks
- Core Concepts: Learn how x402 works under the hood
- Facilitator: Understand the role of facilitators
- MCP Server: Set up AI agents to use x402 payments