Skip to main content

x402r Refund Protocol

A secure, transparent refund system for x402 payments. Enable dispute resolution and buyer protection with minimal code changes.

The Problem

When agents or users pay for services via x402, things can go wrong:

  • An API returns empty data after payment
  • A purchased item arrives damaged or wrong
  • A merchant becomes unresponsive

x402r solves this by routing payments through escrow contracts, enabling trustless refunds and dispute resolution.

How It Works

  1. Merchant deploys an escrow contract (one-time setup)
  2. Payments are routed through a DepositRelay to escrow
  3. Disputes can be raised on-chain
  4. Arbiters resolve disputes, funds are released or refunded