ERC-8004 defines a lightweight, onchain trust layer for autonomous agents using three registries: Identity, Reputation, and Validation. The standard is designed to work alongside existing agent protocols (A2A, MCP). Payments are out of scope for ERC-8004; however, payment proofs (e.g., from x402) can be referenced in reputation data. This page covers what ERC-8004 standardizes, how it relates to A2A, MCP, and x402, and where to find the Polygon and Polygon Amoy deployments.Documentation Index
Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
Use this file to discover all available pages before exploring further.
Why ERC-8004?
Modern agent stacks focus on communication and capability exposure, not on open discovery and trust across organizational boundaries. Google’s A2A provides agent authentication, capability advertisement via Agent Cards, and orchestration, but does not standardize reputation or validation. Anthropic’s MCP connects LLM apps to external tools and data, and similarly leaves trust and discovery to individual applications. ERC-8004 adds the missing piece: standard onchain registries that any chain can host as singletons. It links agents to MCP/A2A endpoints through an onchain identity, with optional trust signals.What ERC-8004 standardizes (at a glance)
- Identity Registry - an ERC-721 + URIStorage registry that mints an
Agent ID (
agentId) and points itstokenURIto a JSON registration file (e.g., on IPFS/HTTPS) listing A2A/MCP endpoints, DIDs, ENS, wallets, etc. Ownership of the NFT = ownership of the agent entry. - Reputation Registry - an interface for clients to submit feedback
(score
0-100, optional tags, and an optional off-chain file/URI + hash). Off-chain files may include payment proofs to correlate economics with feedback. - Validation Registry - a request/response log for independent validators (e.g., stake-based re-execution, zkML verifiers, TEEs) to post attestations about an agent’s work. Results can be queried onchain.
Payments are orthogonal to
ERC-8004; the spec shows how x402 proofs can be referenced in reputation
data but does not dictate any settlement flow.
Polygon Deployments
Amoy
- IdentityRegistry: 0x8004ad19E14B9e0654f73353e8a0B600D46C2898
- ReputationRegistry: 0x8004B12F4C2B42d00c46479e859C92e39044C930
- ValidationRegistry: 0x8004C11C213ff7BaD36489bcBDF947ba5eee289B
Read-Only Examples
The snippets below useviem to query the Amoy contracts. They are
deterministic and read-only, and work before any agents are minted. Note that
tokenURI and ownerOf only resolve for existing agentId values.
Where these come from in the spec
- Identity uses ERC-721 + URIStorage (hence tokenURI and ownership semantics).
- Validation exposes getValidationStatus/getSummary to query results.
You can use more
modern interfaces and standards backwards compatible with ERC-721
to access the same values if you wish.