$ man agent-card-resolve
/agent-card-resolve
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarketCATEGORY
uncategorized
STATUS
● live
NAME
agent-card-resolve — resolves an erc-8004 agentid to its on-chain owner, agenturi, and agent card json
SYNOPSIS
POST https://x402.agentutility.ai/agent-card-resolve
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Resolves an ERC-8004 agentId to its on-chain owner, agentURI, and agent card JSON. Pass an agentId (uint256 on Base) — returns the 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. Use it as an agent card resolver, ERC-8004 Identity Registry lookup, Trustless Agents query, A2A identity check, agent.json fetch, or on-chain agent metadata reader.
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.agentutility.ai/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 the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the agent-card-resolve tool from your MCP-aware agent.
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 | Finds the cross-exchange arbitrage spread for any CoinGecko-listed coin. | $0.005 |
| basename-resolve | Resolves Coinbase Basenames (.base.eth) to Ethereum addresses and back, reading the Base mainnet L2 Resolver on-chain (no gas, no wallet). | $0.005 |
| cid-fetch | Fetches the content behind an IPFS CID and optional path through public gateways, returning text, JSON, or base64 with a 5 MB cap. | $0.005 |
| current-balance | Reads a wallet's current ERC-20 token balance with a read-only balanceOf call on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, or Ava… | $0.005 |
| defi-yield-pools | Filters and ranks thousands of DeFi yield-bearing pools by APY across every chain DeFiLlama tracks. | $0.005 |
| erc20-balance | Reads an ERC-20 token balance on-chain across any supported EVM chain, including Base, Ethereum, Arbitrum, Optimism, and Polygon. | $0.005 |
| erc20-metadata | Reads ERC-20 token metadata: name(), symbol(), decimals(), and totalSupply() in parallel via public RPC on Base, Ethereum, Arbitrum, Opti… | $0.005 |
| flagged-tokens | Feed of flagged risky Solana tokens: thin liquidity, extreme moves, sell pressure, very new pairs, and missing profile context. | $0.005 |
SEE ALSO