# SperaxOS ERC-8004 Agent Count Lookup

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

Returns the total number of ERC-8004 agents registered on a specified blockchain network

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/erc8004/getAgentCount?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-erc-8004-agent-count-lookup-c4fcab63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gW_qFm2bfJqOl099gwMhO

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-agent-count-lookup-c4fcab63 -d '<json body>'
```

Example prompt: How many ERC-8004 agents are currently registered on BSC mainnet according to SperaxOS?

## When to prefer this

Use this endpoint when you need a fast, trustless, on-chain count of ERC-8004 registered agents on a specific supported blockchain (BSC mainnet/testnet, Ethereum, or Sepolia). Prefer this over generic blockchain explorers when you want a purpose-built DeFi intelligence result without needing API key management, paying only per call with USDC.

## Known failure modes

- Unsupported chain name returns an error or empty result
- Network congestion on the queried chain may cause delayed or failed reads
- Payment of $0.02 USDC via x402 protocol required; missing or invalid payment returns 402 Payment Required
- Invalid chain value (not one of: bsc-testnet, bsc-mainnet, ethereum, sepolia) results in a bad request error

## 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 the total count of ERC-8004-compliant agents registered on the queried blockchain network, as a numeric value drawn from the on-chain registry.

## 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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-erc-8004-agent-count-lookup-c4fcab63/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)
