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:| Tag | Measures | Example |
|---|---|---|
starred | Quality rating (0-100) | 87/100 |
uptime | Endpoint uptime % | 99.77% |
successRate | Task success rate % | 89% |
responseTime | Response time (ms) | 560ms |
reachable | Endpoint reachable | true/false |
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:| Model | Mechanism | Best For |
|---|---|---|
| Reputation-based | Client feedback with scores | Low-stake, frequent interactions |
| Crypto-economic | Stake-secured validation with slashing | Medium-stake financial operations |
| zkML | Zero-knowledge proofs of correct execution | Privacy-preserving verification |
| TEE Attestation | Hardware-isolated execution proofs | High-assurance requirements |
Contract Deployments
Celo Mainnet
| Contract | Address |
|---|---|
| Identity Registry | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 |
| Reputation Registry | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
Celo Sepolia (Testnet)
| Contract | Address |
|---|---|
| Identity Registry | 0x8004A818BFB912233c491871b3d84c89A494BD9e |
| Reputation Registry | 0x8004B663056A597Dffe9eCcC1965A193B7388713 |
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
| Resource | Link |
|---|---|
| EIP Specification | eips.ethereum.org/EIPS/eip-8004 |
| Official Website | 8004.org |
| Learning Portal | 8004.org/learn |
| Contracts Repo | github.com/erc-8004/erc-8004-contracts |
| Telegram | t.me/ERC8004 |
| Builder Program | bit.ly/8004builderprogram |
Related Protocols
- x402 - Payment layer for AI agents
- Agent Skills - Modular agent capabilities
- MCP Servers - Connect agents to data and tools