transferWithAuthorization
function from the EIP-3009 standard. This enables:
"$0.01"
) - The system infers USDC as the tokenname()
function - Example on Basescanversion()
function - Example on Basescaneip712
nested object when configuring TokenAmount:
Facilitator | Networks Supported | Production Ready | Requirements |
---|---|---|---|
x402.org | base-sepolia | ❌ Testnet only | None |
CDP Facilitator | base, base-sepolia | ✅ | CDP API keys |
x402.rs | base-sepolia, base, xdc | ✅ | None |
Self-hosted | Any EVM network | ✅ | Technical setup |
typescript/packages/x402/src/types/shared/evm/config.ts
Add your network’s chain ID and USDC address:
typescript/packages/x402/src/types/shared/network.ts
Add your network to the schema and mappings:
typescript/packages/x402/src/types/shared/evm/wallet.ts
- Update getChainFromNetwork
function
Add your network to the getChainFromNetwork
function to map your network string to the viem chain object:
avalanche-fuji
) across all filestransferWithAuthorization
function)NetworkSchema
, SupportedEVMNetworks
, EvmNetworkToChainId
, and the getChainFromNetwork
switch statementtransferWithAuthorization
) works on any facilitator