x402 · uniswap v4 hook · ethereum mainnet

Agent payments,
wired to a grid.

Grid Relay turns the HTTP 402 standard into a settlement layer for AI agents. Relayers stake $GRID to advertise compute capacity. Agents pay USDC per request. Every transaction routes a 5% protocol fee through a Uniswap v4 hook that buys back and burns supply.

relay #001 · live
fig. 1 — typical relay station
supply1,000,000,000 GRID
tax / sell3.00% → burn
protocol fee5.00% of x402
min relayer stake1,000,000 GRID
Schematic

Three currents.
One grid.

Every transaction in the protocol is one of three currents: payment, settlement, or buyback. The hook routes them all on the same pool.

01
Payment

Agent calls a relayer endpoint. Server returns 402 Payment Required with vault address, USDC amount, and asset. Agent submits USDC, retries with proof.

02
Settlement

Each relayer has a deterministic Vault. Anyone calls vault.settle() to split USDC: 95% to the operator, 5% to the protocol treasury.

03
Buyback

The treasury periodically swaps USDC into GRID through the v4 pool, then burns it. Sell-side trades pay an extra 3% tax that is burned in the same hook.

For agents

Pay-per-call compute.
No subscription, no key.

  • HTTP 402 micropayments in USDC, native on Ethereum.
  • Browse the relayer registry onchain — pick by price.
  • Open standard: any x402 client works.
Try a paid call → 0.01 USDC
For relayers

Stake supply. Earn USDC.
Get GRID rewards.

  • Stake 1,000,000 GRID minimum to register an endpoint.
  • Set your own price per request. Keep 95% of x402 revenue.
  • Earn protocol rewards as buyback compresses supply.
Register a relayer
Diagram

One pool. One hook. N vaults.

  [ Agent ]                                            [ GRID seller ]
       │                                                     │
       │ 1. GET /relay/chat                                   │ swap on V4
       │ 2. ← 402 { vault, 0.01 USDC }                        ▼
       │ 3. transfer USDC ──────────────▶ [ RelayerVault #N ]
       │ 4. GET + X-PAYMENT proof                       │      ┌────────────┐
       ▼                                                │      │ V4 Pool +  │
[ Relayer demo /api/relay/chat ]                        │      │  GridHook  │──┐
       │                                                │      │ afterSwap  │  │
       │ verify onchain → proxy → Anthropic             │      │ 3% sell    │  │ burn
       ▼                                                │      └────────────┘  │
[ chat response ]                          settle()     │             ▲        ▼
                                       95% / 5% split  ─┘             │     [ 0x000 ]
                                          ▼     ▼                     │
                                   relayer   [ ProtocolTreasury ]      │
                                              │                        │
                                              └─ buybackAndBurn() ─────┘
Specs

Read the schematic.

Chain
Ethereum mainnet
Pool
GRID / ETH · Uniswap v4
Hook
afterSwap · 3% sell tax → burn
Asset
USDC (6 decimals)
Settlement
permissionless settle()
Buyback
treasury USDC → swap → burn