Skip to main content
x402r is a refundable payments protocol extension for x402. It enables secure, reversible transactions with built-in buyer protection through smart contract escrow on Base.

Why x402r?

Standard x402 payments are immediate and irreversible. x402r adds:
  • Escrow deposits — Funds held in smart contracts until conditions are met
  • Refund windows — Configurable time periods for buyers to request refunds
  • Dispute resolution — Arbiter system for handling contested transactions

How It Works

Who Is This For?

Clients (Payers)

Request refunds, freeze suspicious payments, and track payment state.

Merchants (Receivers)

Release funds, process refunds, and manage escrow periods.

Arbiters

Resolve disputes and approve/deny refund requests.

Get Started

Protocol Overview

Understand how x402r extends the x402 protocol.

Smart Contracts

Explore the escrow and payment operator contracts.

SDK Quickstart

Start building with the TypeScript SDK.

Deploy an Operator

Deploy your own PaymentOperator on Base.

Architecture

x402r consists of these core components:
ComponentPurpose
PaymentOperatorManages payment authorization, release, charge, and refunds with pluggable conditions
AuthCaptureEscrowHolds ERC-20 tokens during the payment lifecycle (from commerce-payments)
Conditions & RecordersPluggable authorization checks (before action) and state updates (after action)
EscrowPeriod & FreezeTime-based release and freeze policies for buyer protection
RefundRequestHandles refund request lifecycle and approvals
All protocol contracts use unified CREATE3 addresses — same address on every supported chain.

Supported Networks

NetworkChain IDStatus
Base8453Supported
Ethereum1Supported
Polygon137Supported
Arbitrum One42161Supported
Optimism10Supported
Celo42220Supported
Avalanche C-Chain43114Supported
Monad143Supported
Linea59144Supported
Base Sepolia84532Testnet
Ethereum Sepolia11155111Testnet

Resources

GitHub

Source code and examples.

SDK Reference

SDK documentation and API reference.

Support

Get help with integration.