Skip to main content
x402 payments are instant and irreversible. x402r adds escrow holds, refund windows, and dispute resolution on top. Three roles interact with the protocol:
  • Merchants receive payments into escrow and release funds after delivery
  • Payers can request refunds, freeze payments, and submit evidence during disputes
  • Arbiters verify transactions or resolve disputes (two models below)

Two Operator Models

Marketplace (deployMarketplaceOperator): The merchant releases funds after escrow. If the payer contests, they file a refund request and an arbiter resolves it. Use this for general commerce where most transactions are uncontested. Delivery Protection (deployDeliveryProtectionOperator): The arbiter evaluates every transaction automatically and is the only address that can release funds. If the arbiter does not release, funds auto-refund after escrow. Use this for AI content verification, schema validation, or automated quality checks.

Packages

npm install @x402r/sdk
@x402r/sdk is the only package most developers need. It includes role-scoped client factories, 8 action groups (payment, escrow, refund, evidence, freeze, query, operator, watch), and an .extend() plugin system. For low-level access to contract ABIs and deploy utilities:
npm install @x402r/core
For x402 server integration:
npm install @x402r/helpers

Guides

Merchants

Deploy an operator, accept a payment, release funds from escrow.

Payers

Check payment state, request a refund, submit evidence.

Arbiters

Review disputes, approve or deny refunds, distribute fees.

Supported Chains

All contracts are deployed to identical addresses on every chain via CREATE3. Only USDC differs.
ChainChain IDUSDC
Base Sepolia845320x036CbD53842c5426634e7929541eC2318f3dCF7e
Ethereum Sepolia111551110x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238
Arbitrum Sepolia4216140x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d
Ethereum10xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Base84530x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Polygon1370x3c499c542cEF5E3811e1192ce70d8cC03d5c3359
Arbitrum One421610xaf88d065e77c8cC2239327C5EDb3A432268e5831
Optimism100x0b2C639c533813f4Aa9D7837CAf62653d097Ff85
Celo422200xcebA9300f2b948710d2653dD7B07f33A8B32118C
Avalanche C-Chain431140xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E
Monad1430x754704Bc059F8C67012fEd69BC8A327a5aafb603
Linea591440x176211869cA2b568f2A7D4EE941E073a821EE1ff
SKALE Base11879479330x85889c8c714505E0c94b30fcfcF64fE3Ac8FCb20