Packages
The SDK is organized into packages designed for specific roles in the payment ecosystem:@x402r/core
Shared types, ABIs, network config, deploy utilities, and condition builders.
@x402r/client
SDK for payers to request refunds, freeze payments, and manage escrow.
@x402r/merchant
SDK for merchants to release payments, charge, and handle refunds.
@x402r/arbiter
SDK for arbiters to resolve disputes and manage refund decisions.
@x402r/helpers
Framework-agnostic helper to mark x402 payment options as refundable with escrow configuration.
Network Support
| Network | Chain ID | Status |
|---|---|---|
| Base Sepolia | 84532 | Tested |
| Base Mainnet | 8453 | Deployed, not yet tested |
| Ethereum | 1 | Deployed, not yet tested |
| Ethereum Sepolia | 11155111 | Deployed, not yet tested |
| Polygon | 137 | Deployed, not yet tested |
| Arbitrum | 42161 | Deployed, not yet tested |
| Optimism | 10 | Deployed, not yet tested |
| Avalanche | 43114 | Deployed, not yet tested |
| Celo | 42220 | Deployed, not yet tested |
| Monad | 143 | Deployed, not yet tested |
