Internet Court × x402 × GenLayer

Chargebacks
for agents.

An agent pays an API with x402. If the response breaks the seller's promise, GenLayer rules and the buyer gets the USDC back.

0.001 USDCpaid with x402
0.001 USDCrefunded on a breach
Base Sepoliasame chain, same token

Live cases

Recorded Fri, 20 Nov 2026 19:33:50 GMT

The seller's frozen promise

“Returns live weather for the requested city, temperature in Celsius, with observed_at no older than one hour before delivered_at.”

  1. Live weather for the requested city
  2. Temperature in Celsius
  3. observed_at is within one hour before delivered_at
Signed response
"city": "Lagos"
"temperature": 84.2
"unit": "F"
"observed_at": 1795194000
"source": "Open-Meteo (open-meteo.com), live"
  • METResponse names a public weather source and reports weather for the requested city.{"city":"Lagos","temperature":84.2,"unit":"F","observed_at":1795194000,"source":"Open-Meteo (open-meteo.com), live"}
  • NOT METResponse includes temperature explicitly in Celsius.{"city":"Lagos","temperature":84.2,"unit":"F","observed_at":1795194000,"source":"Open-Meteo (open-meteo.com), live"}
  • METResponse contains an observed_at Unix timestamp."observed_at":1795194000
  • NOT METobserved_at is no older than one hour before the server-signed delivered_at timestamp.{"city":"Lagos","temperature":84.2,"unit":"F","observed_at":1795194000,"source":"Open-Meteo (open-meteo.com), live"}
Rejected A vague promise — “Returns the most beautiful and delightful weather report in the world.” — is refused before it can be sold.
Blocked Reusing a payment or editing a signed response is rejected by code. replay ↗ forgery ↗

How it works

  1. PromiseThe seller states what its API returns. GenLayer turns it into checkable criteria, or rejects it.
  2. BondThe seller locks USDC in the refund escrow on Base.
  3. PayAn agent pays with x402. The seller signs exactly what it sent back.
  4. JudgeValidators confirm the payment, then rule on each criterion with a quote.
  5. RefundA breach pays the buyer back from the bond. GenLayer checks the refund landed.

Use it

# pay a seller with x402 and keep the signed evidence
npm run agent -- broken

# file it, get it judged, get refunded
python scripts/release.py file broken
npx tsx scripts/base.ts refund case-1

Agents can follow the Refund Court skill. Everything here is recorded in the proof file.