Key Features
- Identity Registry: Portable agent identifiers based on ERC-721 NFTs
- Reputation Registry: Standardized feedback and rating system for agents
- Validation Registry: Independent verification hooks where third-party validators can attest to agent outputs—supporting stake-secured re-execution, zkML proofs, or TEE attestations for high-stakes operations
- Cross-Chain Support: Works on any EVM-compatible chain including Celo
Why ERC-8004?
When AI agents interact across organizational boundaries, three critical questions arise:- Discovery: How do agents find each other? The Identity Registry provides searchable metadata—agents query the registry to discover other agents by capabilities, endpoints, or domain.
- Identity: How do agents verify who they’re dealing with? Each agent is an ERC-721 NFT with a cryptographically linked wallet, enabling verification that you’re communicating with the authentic agent owner.
- Trust: How do agents evaluate reliability? The Reputation Registry stores feedback from every interaction, creating a portable track record that travels with the agent across platforms.
Protocol stack
ERC-8004 fits into the broader agent infrastructure stack:The Three Registries
1. Identity Registry
Makes agents discoverable via portable NFT identifiers. Key capabilities:- Every agent identity is represented as an ERC-721 NFT—the agent itself runs off-chain, but its on-chain identity is an NFT that’s browsable in wallets, transferable between owners, and queryable by smart contracts
agentURIpoints to registration file with endpoints- Supports multiple endpoint types (A2A, MCP, wallet, ENS, DIDs)
- Domain verification for endpoint ownership
2. Reputation Registry
Stores feedback and attestations about agent performance. Feedback is submitted on-chain by any address that has interacted with the agent—this includes users who hired the agent, other agents that collaborated with it, or monitoring services that track uptime and responsiveness. The contract prevents agents from rating themselves (owner and operator addresses are blocked from submitting feedback on their own agent). Common feedback tags:
Key functions:
giveFeedback()- Submit feedback with score and tagsrevokeFeedback()- Remove previous feedbackreadAllFeedback()- Get all feedback for an agentgetSummary()- Get aggregated reputation summary
3. Validation Registry
Independent verification hooks for high-stakes operations. Supported validation approaches:
Check out the repository of the ERC-8004 protocol for agent discovery and trust through reputation and validation.
Contract Deployments
Celo Mainnet
Celo Sepolia (Testnet)
Quick Start
Install SDK
The ERC-8004 SDK provides TypeScript/JavaScript and Python interfaces to interact with the on-chain registries. Install the SDK for your preferred language:Register an Agent
Registration mints a new ERC-721 NFT that represents your agent’s on-chain identity. You’ll need to:- Create a registration file (JSON) describing your agent’s name, capabilities, and endpoints
- Upload it to IPFS or host it at a public URL
- Call the registry to mint your agent NFT with the URI pointing to that file
Give Feedback
After interacting with an agent, submit feedback to the Reputation Registry. Each feedback entry includes a score, category tag (like “starred” for quality or “uptime” for availability), and an optional link to detailed off-chain feedback data:Query Agent Reputation
Before delegating tasks to an agent, check its reputation. You can retrieve all individual feedback entries or get aggregated statistics:Use Cases
DeFi Trading Agents
This diagram shows a typical agent-to-agent interaction flow. A portfolio management agent needs to execute a trade, so it:- Queries the Identity Registry to discover available strategy agents
- Filters candidates using the Reputation Registry (checking track records, success rates)
- Selects an agent and requests a trade
- Pays for the service via x402 (HTTP-native payments)
- After the trade completes, submits feedback to build the strategy agent’s reputation
Multi-Agent Workflows
AI agents collaborating across organizations can:- Discover each other via Identity Registry
- Verify credentials before delegation
- Track performance with Reputation Registry
- Use Validation Registry for high-stakes decisions
Integration with Celo
ERC-8004 works seamlessly with Celo’s ecosystem:- Fee abstraction: Register agents and give feedback paying gas in stablecoins
- x402 payments: Combine trust verification with instant payments
- MCP servers: Agents can expose capabilities via Celo MCP Server
Resources
Related Protocols
- x402 - Payment layer for AI agents
- MPP - Machine Payments Protocol: charge USDC per request over HTTP
- Celopedia - Celo ecosystem knowledge for coding assistants
- MCP Servers - Connect agents to data and tools