Skip to main content
Six commands cover the ERC-8004 lifecycle: register a new agent identity, query its registered payment wallet, fetch metadata by key, read or write reputation. ERC-8004 sits separately from x402, payments are independent, but a registered identity gives counterparties a place to look up an agent’s wallet, attestations, and feedback before transacting with it. All agent commands operate on Polygon mainnet only, regardless of the wallet’s default chain.

How it works

Identity lifecycle
1OperatorCLIpolygon-agent agent register —name …
2IdentityRegistryMints an agentId, emits Registered event
3CounterpartyCLIpolygon-agent agent reputation —agent-id …
4ReputationRegistryCLIReturns score and tag breakdown
5CounterpartyReputationRegistrypolygon-agent agent feedback —value 95 —broadcast
The smart wallet pays gas for register and feedback. Read commands (reputation, reviews, wallet, metadata) do not need broadcast.

Contracts

For the full standard, see ERC-8004 on Polygon.

Commands

agent register

Mints an ERC-721 identity in the IdentityRegistry. After broadcast, retrieve the assigned agentId from the Registered event in the transaction’s Logs tab on Polygonscan.

agent wallet

Returns the payment wallet registered for the agent.

agent metadata

Reads one metadata value by key.

agent reputation

Aggregated reputation score for the agent. Optional --tag1 and --tag2 filter by category.

agent reviews

Enumerates all feedback entries. --include-revoked shows entries that have been revoked by their authors.

agent feedback

Submits a feedback score. Useful for counterparties evaluating an agent after a completed interaction. Submitter is the calling smart wallet.

Worked example


Implementation

ERC-8004 on Polygon

Standard, contracts, and integration concepts.

CLI overview

Topology and safety model.

Agentic Payments

Conceptual overview of agentic flows on Polygon.

Setup and wallets

Wallet needs gas to register and submit feedback.