Skip to main content
The X402r SDK is in active development (v0.0.2). APIs may change between releases. Always test on Base Sepolia before using real funds on mainnet.
The X402r SDK provides a complete TypeScript implementation for integrating with the X402r refundable payments protocol. It enables clients, merchants, and arbiters to interact with smart contracts for payment authorization, escrow management, and dispute resolution.

Packages

The SDK is organized into packages designed for specific roles in the payment ecosystem:

Network Support

NetworkChain IDStatus
Base Sepolia84532Tested
Base Mainnet8453Deployed, not yet tested
Ethereum1Deployed, not yet tested
Ethereum Sepolia11155111Deployed, not yet tested
Polygon137Deployed, not yet tested
Arbitrum42161Deployed, not yet tested
Optimism10Deployed, not yet tested
Avalanche43114Deployed, not yet tested
Celo42220Deployed, not yet tested
Monad143Deployed, not yet tested