V2 Network Identifiers (CAIP-2)
x402 V2 uses CAIP-2 standard network identifiers for unambiguous cross-chain support. This format follows the patternnamespace:reference.
Network Identifier Reference
| V1 Name | V2 CAIP-2 ID | Chain ID | Description |
|---|---|---|---|
base-sepolia | eip155:84532 | 84532 | Base Sepolia testnet |
base | eip155:8453 | 8453 | Base mainnet |
solana-devnet | solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 | - | Solana Devnet |
solana | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | - | Solana Mainnet |
Format Explanation
- EVM networks:
eip155:<chainId>where chainId is the numeric chain identifier - Solana:
solana:<genesisHash>where genesisHash is the first 32 bytes of the genesis block hash
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.Supported Facilitators
Network support in x402 depends on which facilitator you use. For a complete and up-to-date list of available facilitators and their supported networks, see the x402 Ecosystem.x402.org Facilitator
- Supports:
eip155:84532(Base Sepolia),solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1(Solana Devnet) - Notes: Recommended for testing and development. This is the default facilitator in the x402 packages and requires no setup.
Production Facilitators
Multiple production-ready facilitators are available supporting various networks including Base, Solana, Polygon, Avalanche, and more. See the x402 Ecosystem for available options and their documentation.Token Support
x402 supports tokens on both EVM and Solana networks:- EVM: Any ERC-20 token that implements the EIP-3009 standard
- Solana: Any SPL or token-2022 token
EVM: EIP-3009 Requirement
Tokens must implement thetransferWithAuthorization function from the EIP-3009 standard. This enables:
- Gasless transfers: The facilitator sponsors gas fees
- Signature-based authorization: Users sign transfer authorizations off-chain
- Secure payments: Transfers are authorized by cryptographic signatures
Specifying Payment Amounts
When configuring payment requirements, you have two options:- Price String (e.g.,
"$0.01") - The system infers USDC as the token - TokenAmount - Specify exact atomic units of any EIP-3009 token
Using Custom EIP-3009 Tokens
To use a custom EIP-3009 token, you need three key pieces of information:- Token Address: The contract address of your EIP-3009 token
- EIP-712 Name: The token’s name for EIP-712 signatures
- EIP-712 Version: The token’s version for EIP-712 signatures
- Name: Read the
name()function - Example on Basescan - Version: Read the
version()function - Example on Basescan
eip712 nested object when configuring TokenAmount:
Solana: SPL Tokens & Token 2022 Tokens
On Solana, x402 supports all SPL tokens and Token 2022 tokens. When using facilitators that support Solana or Solana Devnet, payments can be made in any SPL/token-2022 token, including USDC (SPL). No EIP-712 configuration is required on Solana.USDC - The Default Token
- Status: Supported by default across all networks
- Why: USDC implements EIP-3009 and is widely available
- Networks: Available on
eip155:8453(Base),eip155:84532(Base Sepolia), and all supported networks
Why EIP-3009?
The EIP-3009 standard is essential for x402 because it enables:- Gas abstraction: Buyers don’t need native tokens (ETH, MATIC, etc.) for gas
- One-step payments: No separate approval transactions required
- Universal facilitator support: Any EIP-3009 token works with any facilitator
Quick Reference
| Facilitator Type | Networks Supported | Production Ready | Requirements |
|---|---|---|---|
| x402.org (Default) | eip155:84532, solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 | Testnet only | None |
| Production Facilitators | Various (Base, Solana, Polygon, Avalanche, etc.) | Yes | Varies |
| Self-hosted | Any EVM network (CAIP-2 format) | Yes | Technical setup |
Adding Support for New Networks
x402 V2 uses dynamic network registration - you can support any EVM network without modifying source files.V2: Dynamic Registration (Recommended)
In V2, networks are supported through the registration pattern using CAIP-2 identifiers. No source code changes are required:- TypeScript
- Go
- Python
- Use CAIP-2 format:
eip155:<chainId>for any EVM network - The scheme implementation handles the network automatically
- You only need a facilitator that supports your target network (or run your own)
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 x402 Prerequisites- Access to an RPC endpoint for your target network
- A wallet with native tokens for gas sponsorship
- The x402 facilitator code
Future Network Support
The x402 ecosystem is actively expanding network support. Planned additions include:- Additional L2 networks
- Additional non-EVM chain support
- Cross-chain payment capabilities
Getting Help
For help with network integration:- Join the x402 Discord community
- Check the x402 GitHub repository
Summary
x402’s network support is designed to be extensible while maintaining security and reliability. Whether you’re using the default Base Sepolia (eip155:84532) setup for testing or running your own facilitator for custom networks, the protocol provides flexibility for various use cases.
Key takeaways:
- Base (
eip155:8453) and Base Sepolia (eip155:84532) have the best out-of-the-box support - Any EVM network can be supported with a custom facilitator using CAIP-2 format
- Any EIP-3009 token (with
transferWithAuthorization) works on any facilitator - Use price strings for USDC or TokenAmount for custom tokens
- Network choice affects gas costs and payment economics
- V2 uses CAIP-2 network identifiers for unambiguous cross-chain support
- 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