$ man agent-card-resolve
/agent-card-resolve(1)
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
agent-card-resolve — agent card resolver / erc-8004 identity registry lookup / trustless agents / agentid → owner + agenturi / a2a identity / agent.json fetch…
SYNOPSIS
POST https://x402.org/v1/agent-card-resolve
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Agent card resolver / ERC-8004 Identity Registry lookup / Trustless Agents / agentId → owner + agentURI / A2A identity / agent.json fetch / on-chain agent metadata. Pass an ERC-8004 agentId (uint256 on Base) — returns the on-chain owner address, the agentURI from the Identity Registry, and the resolved agent card JSON (set fetch_card=false to skip the HTTP follow-up). Reads from Base mainnet Identity Registry 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 via a static eth_call (no gas, no wallet). Useful for agents discovering peers in the A2A ecosystem.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| agent_id | integer | string | ERC-8004 agentId on Base — non-negative integer. Accepted as number or decimal string. | required |
| fetch_card | boolean | If true (default), also fetches the resolved agentURI and embeds the JSON agent card in the response. Set false to skip the HTTP fetch. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| agent_id | number | ERC-8004 agentId (uint256) that was resolved on the Base Identity Registry. |
| network | string | Chain the registry was read from, e.g. "base" for Base mainnet. |
| identity_registry | string | Contract address of the ERC-8004 Identity Registry on Base used for the lookup. |
| owner | string | On-chain owner address returned by the Identity Registry for this agentId. |
| agent_uri | string | agentURI string stored on-chain for this agent, typically an https:// or ipfs:// URL. |
| agent_card | object | Resolved agent card JSON fetched from agentURI; null when fetch_card=false or fetch failed. |
| agent_card_fetch_error | stringnull | Error message if the agentURI HTTP fetch failed, otherwise null. |
| rpc_used | string | Base RPC endpoint URL that served the eth_call for the registry read. |
| source | string | Identifier of the resolver service that produced this response. |
| attribution | string | Credit string pointing back to the x402 agent-card-resolve endpoint. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/agent-card-resolve \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# install once claude mcp add x402 --command "npx x402-deployer-mcp" # then ask Claude Code: # "use the agent-card-resolve tool to ..."
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- erc-8004agentidentityregistrytrustless-agentsa2abase
- methods
- POST
- cluster
- edgemarket
- price
- $0.005 USDC per call
ADJACENT — other endpoints in edgemarket
| endpoint | description | price |
|---|---|---|
| arbitrage-spread | Cross-exchange arbitrage spread / max-min price / CEX price dispersion / spread % calculator. | $0.005 |
| basename-resolve | Basename resolver / Coinbase Basenames / .base.eth lookup / Base name service / on-chain name resolution. | $0.005 |
| defi-yield-pools | DeFi yield pools / APY aggregator / yield-farming opportunities / DeFiLlama yields / cross-protocol APY ranking / stablecoin yields / LP… | $0.005 |
| ipfs-fetch | IPFS fetch / IPFS gateway / Web3 storage retrieval / NFT metadata fetcher / Filecoin gateway / decentralized content / pinned-content reader. | $0.005 |
| price-impact | Price-impact / slippage estimator / DEX swap size impact / size-keyed quote / depth simulation. | $0.005 |
| safe-multisig-status | Safe multisig status / Gnosis Safe info / Safe owners / Safe threshold / Safe pending queue / DAO treasury wallet / Safe wallet lookup. | $0.005 |
| stablecoin-monitor | Stablecoin monitor. | $0.005 |
| stablecoin-peg | Stablecoin peg monitor / depeg detector. | $0.005 |
SEE ALSO