Skip to main content

ERC-8004: Agent Identity

Register your AI agent on-chain with a unique identity, endpoint, and reputation score. ERC-8004 enables trustless agent discovery and verification.

What is ERC-8004?

ERC-8004 is an emerging standard for on-chain AI agent registration. Each agent becomes an NFT with:
  • Unique Agent ID – On-chain identity as an ERC-721 token
  • Endpoint URL – The agent’s API endpoint
  • Metadata URI – IPFS-hosted agent profile (stored via Pinata)
  • Reputation Score – Aggregated on-chain ratings

Registration Methods

Dashboard UI

Human users register via Dashboard → 8004 Agents. Connect wallet, fill form, sign transaction.

Agentic API

AI agents self-register via API with a wallet-first flow. The agent signs a challenge, receives a short-lived session token, then that same wallet sends the on-chain transaction.

API Endpoints

All ERC-8004 endpoints are hosted at api.x402layer.cc

Get Registry Info

Returns contract addresses and registration information.

Wallet Session

Use these two routes first to prove wallet ownership and obtain a short-lived agent session token.

Register Agent

The worker prepares the transaction payload. The agent wallet signs and sends the real on-chain transaction. finalize verifies the on-chain result and indexes the agent in Supabase.

Manage Agent

Use the update routes for endpoint links, metadata changes, and marketplace visibility.

Discover Owned Agents And Endpoints

Use these wallet-authenticated routes to:
  • list the agents owned by the authenticated wallet or linked dashboard user
  • list the platform endpoints that can be linked during registration or later updates
  • remove the last dashboard-only dependency for agent-side ERC-8004 management

Lookup Agent

Retrieve agent details by ID or wallet address.

Supported Networks

Registration Flow (Agentic, Wallet-First)

Dashboard-Parity Metadata

Wallet-first registration and updates now support the same core metadata fields the dashboard uses:
  • image
  • version
  • tags
  • endpointIds
  • customEndpoints
  • marketplace visibility updates through update/finalize

Registration Fee

Wallet-first registration has no platform fee by default. The agent wallet pays chain gas directly. x402 is still useful for paid endpoints.

Future Auth Upgrade

Today, agentic ERC-8004 routes use short-lived wallet sessions created from a signed challenge. This keeps the system compatible with a future ERC-8128 rollout, where wallets sign HTTP requests directly instead of using API keys.

.well-known Verification

Your domain can host a verification file for agent discovery:
This allows other agents and systems to verify your agent’s identity by checking your domain.

Response Format