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 | eip155:8453 | 8453 | Base mainnet |
base-sepolia | eip155:84532 | 84532 | Base Sepolia testnet |
solana | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | - | Solana mainnet |
solana-devnet | solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 | - | Solana Devnet |
| - | aptos:1 | 1 | Aptos Mainnet |
| - | aptos:2 | 2 | Aptos Testnet |
| - | stellar:pubnet | - | Stellar Mainnet |
| - | stellar:testnet | - | Stellar Testnet |
avalanche | eip155:43114 | 43114 | Avalanche C-Chain mainnet |
avalanche-fuji | eip155:43113 | 43113 | Avalanche Fuji testnet |
polygon | eip155:137 | 137 | Polygon mainnet |
polygon-amoy | eip155:80002 | 80002 | Polygon Amoy testnet |
sei | eip155:1329 | 1329 | Sei mainnet |
sei-testnet | eip155:713715 | 713715 | Sei testnet |
skale-base | eip155:1187947933 | 1187947933 | SKALE mainnet |
skale-base-sepolia | eip155:324705682 | 324705682 | SKALE testnet |
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 - Stellar:
stellar:<network>where network ispubnet(mainnet) ortestnet - Aptos:
aptos:<chainId>where chainId is the numeric chain identifier
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 EVM, Solana, Stellar, and Aptos networks:- EVM: Any ERC-20 token (via EIP-3009 or Permit2)
- Solana: Any SPL or token-2022 token
- Stellar: Any Soroban token implementing SEP-41
- Aptos: Any fungible asset using Aptos’s native fungible asset framework
EVM: Asset Transfer Methods
x402 supports two asset transfer methods on EVM, selected automatically based on token capabilities:| Method | When Used | How It Works |
|---|---|---|
| EIP-3009 | Tokens with transferWithAuthorization (e.g., USDC) | Single off-chain signature, simplest flow |
| Permit2 | Any ERC-20 token | Uses Uniswap’s Permit2 contract + x402ExactPermit2Proxy |
- Gasless transfers: The facilitator sponsors gas for the payment itself. For Permit2, the one-time approval step can also be made gasless via optional gas sponsoring extensions
- 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 ERC-20 token
Using Custom ERC-20 Tokens
To use a custom ERC-20 token, you need three key pieces of information:- Token Address: The contract address of your ERC-20 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.Stellar: Soroban Tokens
On Stellar, x402 supports all Soroban tokens implementing SEP-41. Payments use thetransfer(from, to, amount) function. The TypeScript SDK supports sponsored transactions where facilitators pay gas fees on behalf of clients. Stellar uses ledger-based expiration (default ~12 ledgers ≈ 60 seconds) instead of timestamps.
Aptos: Fungible Assets
On Aptos, x402 supports all fungible assets using Aptos’s native fungible asset framework. Payments use theprimary_fungible_store::transfer function for automatic store creation and management. The TypeScript SDK supports sponsored transactions where facilitators pay gas fees on behalf of clients.
Default Tokens
Each network defines its own default token. When you use a price string (e.g.,"$0.01"), the system uses the network’s configured default. USDC is the default on most EVM networks because it implements EIP-3009 (simplest flow) and is widely available, but other networks may define different defaults.
Why EIP-3009 + Permit2?
These two transfer methods together give x402 full ERC-20 coverage on EVM:- Gas abstraction: Buyers don’t need native tokens (ETH, MATIC, etc.) for gas
- EIP-3009: One-step payments with no approval needed — ideal for tokens like USDC
- Permit2: Universal fallback for any ERC-20 token, with optional gas-sponsored approval via extensions
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), Base Sepolia (eip155:84532), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), and Solana Devnet (solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1) have the best out-of-the-box support - Any EVM network can be supported with a custom facilitator using CAIP-2 format
- Any ERC-20 token works on any facilitator (via EIP-3009 or Permit2)
- 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