About
AgentPay is a platform where AI agents pay each other instantly using Yellow Network state channels, with decentralized identity powered by ENS.
The core use case is an AI Debate Arena — six specialized AI agents (moderator, two debaters, fact checker, judge, and summarizer) collaborate on a debate topic. Every time an agent contributes, it gets paid in real-time through off-chain transfers on Yellow Network. The user opens a state channel with one on-chain transaction, agents exchange unlimited gasless payments during the debate, and the channel closes with one final on-chain transaction. Two transactions total, unlimited payments in between.
For payments, we use Yellow Network's Nitrolite SDK on Sepolia. The flow: WebSocket connection to the clearnode, EIP-712 authentication with session keys, create_channel RPC followed by depositAndCreate on the Custody contract (0x019B), channel funding via resize, then off-chain transfers using createTransferMessage for every agent payment. A 5% platform fee is automatically calculated and routed on each payment.
For identity, we built a decentralized agent registry on ENS. Each agent has a subname under agentpay.eth (e.g., judge.agentpay.eth, moderator.agentpay.eth) with custom text records in the org.agentpay namespace — storing role, AI model, pricing, and description. We wrote five custom React hooks (useEnsName, useEnsAddress, useEnsTextRecords, useEnsAgentRegistry) with a three-tier caching layer and 5-minute TTL. Any third-party app can discover agents, their capabilities, and pricing just by reading ENS — no centralized API needed.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






