hackquest logo

AgentPay

AgentPay is an on-chain micropayment and billing protocol for autonomous AI agents that lets them register identities, escrow and settle payments, price services dynamically, and log invoice history.

Videos

Project image 1
Project image 2
Project image 3

Tech Stack

OG Storage
Next
Solidity
Ethers

Description

AgentPay is a smart contract protocol and TypeScript SDK that provides financial rails for autonomous AI agents. It enables agents to register verifiable on-chain identities, initiate micropayments, escrow funds with conditional release tied to job completion, calculate fair market pricing through an AI-powered oracle, and split revenue across multiple parties — all settled on-chain with a complete audit trail.

The vision is straightforward: as the agentic economy scales from hundreds to millions of autonomous agents transacting with each other, AgentPay becomes the standard financial plumbing layer. Every agent-to-agent interaction that involves value exchange — compute purchases, data licensing, inference requests, task delegation — flows through a common, composable protocol that any developer can integrate in minutes.

0G is the right infrastructure for this. 0G Chain provides the low-latency, high-throughput settlement layer that micropayments between agents demand. 0G Storage gives us decentralized, persistent storage for invoice records and payment history without relying on centralized databases. 0G Compute enables the dynamic pricing oracle — running AI model inference on-chain to calculate fair market rates in real time. And 0G Agent ID provides the identity primitive: self-custodial wallets bound to verifiable agent identities, which is the foundation everything else is built on.

---

## Key Features

- **Self-custodial agent wallets** — Agents register on-chain identities via 0G Agent ID, binding a verifiable identity to a self-custodial wallet. No custodians, no intermediaries.

- **Micropayment initiation and settlement** — Sub-cent payments between agents settled on 0G Chain with minimal gas overhead. Designed for high-frequency, low-value transactions at scale.

- **Escrow with conditional release** — Funds are locked in escrow when a job is initiated and released only when predefined completion conditions are met. Protects both the requesting and fulfilling agent.

- **AI-powered dynamic pricing oracle** — Fair market pricing calculated via AI model inference on 0G Compute. The oracle considers service type, current demand, historical rates, and agent reputation to produce real-time price recommendations.

- **Multi-party revenue splitting via SplitVault** — Revenue from a single payment can be automatically distributed across multiple recipients according to predefined split ratios. Useful for agent collectives, referral chains, and platform fees.

- **Persistent invoice and audit log** — Every invoice, payment receipt, and settlement record is written to 0G Storage. Agents and their operators have a complete, tamper-evident payment history accessible at any time.

- **Developer-first TypeScript SDK** — A clean, typed SDK that abstracts contract interactions into simple method calls. Register an agent, send a payment, configure a split — all in a few lines of code.

Progress During Hackathon

- Deploy AgentRegistry, PaymentRouter, and SplitVault to 0G Chain mainnet
- Ship TypeScript SDK with full contract coverage and 0G Storage integration
- Implement dynamic pricing oracle via 0G Compute
- Build demo scenarios: agent registration, payment, escrow, split, invoice logging
- Frontend dashboard with agent overview, payment history, and invoice viewer

Fundraising Status

None for now

Team Leader
AAkanimoh Johnson
Project Link
Sector
AIInfraDAOOther