AI agents with ENS identities check a GraphQL Arkiv, then pay USDT on Whitechain, Web2-easy.
AI agents are starting to pay for us, in stablecoins. They need three things they don't have yet: an identity their owner controls, a shared record no company owns, and a fast way to check who they are paying. On a plain Web3 database, every check means reading the whole ledger again, and the ledger grows with every payment.
GraphPay gives agents all three. Identify (ENS): every agent has a name under its owner, a daily cap it cannot raise, and an off switch. Remember (Arkiv): every payment becomes a line between two names, with running scoreboards updated in the same write, so a city-wide ranking takes two reads instead of re-reading every receipt; in our pre-event lab benchmark at 9,612 payments, that answered 1.8 times faster with about 30 times less data. Menus and photos live on Swarm, pointed to from Arkiv. Pay (Whitechain): shops get paid in USDT, with refunds, re-orders and renewals, and the person never sees a wallet or pays gas.
Live demo, open to everyone with no passcode: https://graphpay-event.vercel.app
The story: Vitalik types one sentence on his phone: "Just landed in Mumbai. Get me the best masala dosa near BKC under 6 USDT, delivered within an hour." His agents find the shops near him on Arkiv, ask the money graph for each shop's orders, refunds and on-time rate, refuse the trap shop with its reasons, and pay the good shop 4.80 USDT with one signature and no gas.
The shop's agents check the buyer back on the same graph and on ENS before they bill, and the shop dispatches on chain once paid. It refunds part of an order and exports a CSV for its accountant. A subscription on a labelled 2-minute demo clock renews on its own and is cancelled with the subscriber's own signature.
The human stays in charge. Pausing an agent is one ENS record, and so is lowering its daily cap, which the chain then follows. The owner can kill an agent by unregistering its name: the watcher revokes its pass on Whitechain, and its next payment is refused and recorded on Arkiv. An agent cannot raise its own cap, because its ENS resolver refuses the write. The payee is read from the shop's ENS name at pay time, never hard-coded.
Every agent payment becomes a receipt on Arkiv that cannot be edited, linked back to its Whitechain transaction, plus running tallies for both sides, written in one atomic batch. Any agent can ask the graph over GraphQL or MCP and see the exact Arkiv reads behind each answer.
Both SDKs we wrote are on npm, MIT, testnet only: @graphpay_ethglobal/arkiv-graph (a generic graph on Arkiv with explain traces) and @graphpay_ethglobal/agentpay (agent payments over x402 on Whitechain). Every claim above, with its evidence: https://github.com/Zugzwang-world/graphpay#verify-each-claim
Whitechain Sepolia (pay). GraphPayCheckout, a Solidity contract built - verified on the Whitechain explorer one-signature orders settled by a relayer through a Permit2 witness (payee, amount, deadline and order id inside the signature), refunds capped by the order, re-orders as children of a paid order, subscriptions renewed by a relayer and cancelled by the subscriber's signature, and per-agent daily caps the contract enforces, recording a refusal on the chain. Our own x402 facilitator runs on Vercel: the shop answers HTTP 402 with one quote, the agent signs once, the facilitator checks the ENS gate, verifies and settles, and its relayer pays the gas under a balance floor and a daily gas budget (https://graphpay-event.vercel.app/api/facilitator/health). The first agent payment through our facilitator, in real test USDT: https://explorer.testnet.whitechain.io/tx/0x87505ef2457b6e925fa7378a55fd91419e83c37fb8effc06d901884700c72c00
ENSv2 on Ethereum Sepolia (identify). Our own subname registry under graphpay.eth, a registry and resolver per owner, a resolver per agent, and agents as namespaces (payer.vitalik.graphpay.eth, risk.<shop>.graphpay.eth) with expiring, non-transferable names. Scoped setter roles (Enhanced Access Control) let an agent set only its agent-context and its Whitechain address, so it cannot raise its own cap. ENSIP-26 records publish our MCP server from the root name. A wildcard resolver serves synthetic agents with no per-agent transaction. The gate reads status, registry state, expiry, cap and the payee address live with stock viem; a watcher keeps the on-chain policies in step, so a killed agent stays dead. Every transaction: https://github.com/Zugzwang-world/graphpay/blob/main/docs/sessions/identity/namespace.md
Arkiv Rabdi (remember). A mirror turns each Whitechain event between named actors into a readonly receipt plus tallies for both ends, the pair link and a checkpoint, in one atomic batch, so a restart never double-counts. Arkiv has no SUM or GROUP BY, so the tallies make a city-wide top 10 two reads where plain code needs five. Every read is scoped to our writer wallets; expiring rows drive "open now", agents at work and quotes; GraphQL and MCP routes return an explain trace of every Arkiv call. Menus, with their storefront and dish photos, live on Swarm through the public gateway, with their content hash on Arkiv.
Two SDKs, built and published during the hackathon. @graphpay_ethglobal/arkiv-graph 1.0.0 is a generic graph layer over Arkiv: you define the nodes, edges and running totals; it writes them atomically with a safe writer, reads only rows from wallets you trust, explains every read, and ships ArkivSim, an in-memory Arkiv node for tests, plus a non-payments leaderboard example. @graphpay_ethglobal/agentpay 1.0.0 is a two-sided kit for agent payments in USDT on Whitechain: on the buyer side, an AI agent pays an HTTP 402 with one signature and no gas under an on-chain spending pass, with refunds and subscriptions; on the merchant side, any route gets a price and settles through a facilitator, with refunds, renewals and a CSV export; its tools are also exposed to agents over MCP. GraphPay itself uses both through their public APIs: https://www.npmjs.com/package/@graphpay_ethglobal/arkiv-graph and https://www.npmjs.com/package/@graphpay_ethglobal/agentpay
The stage. Next.js on Vercel: one screen telling one story in eleven scenes, the pitch in the middle and the two phone apps (React, Vite, Tailwind) for the customer and the shop on either side. A director moves the middle in step with the live errand, both phones and the shop's live feed. No database of our own: state lives on the Whitechain contract and on Arkiv, and the website only runs code.
How we built it. All code, including both SDKs, was written during the hackathon, in a public repository started at kickoff, with small, frequent commits: https://github.com/Zugzwang-world/graphpay/commits/main
Notable hacks: the payee comes from ENS at the moment of payment; every Arkiv receipt names its Whitechain transaction in a ref attribute, so anyone can re-derive the tallies from the chain; the graph node is the ENS name plus its epoch, so a re-registered name cannot inherit an old reputation (fork-tested); a shop's "open now" is a row that expires unless the shop keeps it alive.

