# SperaxOS ERC-8004 Get Agent

> SperaxOS ERC-8004 Get Agent is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Looks up on-chain ERC-8004 agent token metadata by token ID on a specified blockchain network

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/erc8004/getAgent?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-erc-8004-get-agent-a5f477aa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s1J9FRI7peuCwv8ThO2HO

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability speraxos-erc-8004-get-agent-a5f477aa -d '<json body>'
```

Example prompt: Look up the ERC-8004 agent with token ID 42 on Base mainnet and tell me what metadata is registered for it on-chain.

## When to prefer this

Use this endpoint when you need to resolve a specific ERC-8004 agent token to its on-chain metadata across any of the 12 supported EVM networks. Prefer this over generic blockchain explorers when you need structured agent-specific data in a machine-readable format, or when operating in a pay-per-use agent workflow without a long-term API key.

## Known failure modes

- Invalid or non-existent token ID returns an error or empty result
- Unsupported chain identifier causes a validation error
- Network RPC errors or chain congestion may cause timeouts
- Token ID not yet minted returns a not-found response
- Payment of 0.001 USDC via x402 fails if wallet balance is insufficient

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns on-chain ERC-8004 agent token metadata for the specified token ID on the requested chain, including registered agent details such as identity fields, capabilities, and any associated on-chain data stored in the ERC-8004 agent record.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "default": "bsc-testnet",
   "description": "Blockchain to query. Options: bsc-testnet, bsc-mainnet, ethereum, sepolia, arbitrum, base, optimism, polygon, arbitrum-sepolia, base-sepolia, optimism-sepolia, polygon-amoy"
  },
  "agentId": {
   "type": "string",
   "description": "The token ID of the agent to look up"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-erc-8004-get-agent-a5f477aa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
