# AgentFund On-Chain Token Balances (Bulk)

> AgentFund On-Chain Token Balances (Bulk) is a paid API for AI agents from x402.agentfund.net, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches ERC-20 token balances for up to 500 EVM wallet addresses in a single call across major chains

## Facts

- Endpoint: POST https://x402.agentfund.net/x402/onchain_token_balances
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfund-on-chain-token-balances-bulk-996ea89c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HVgPUfDslaB2P5Qxp4uWm

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 agentfund-on-chain-token-balances-bulk-996ea89c -d '<json body>'
```

Example prompt: Can you pull the USDC balances on Base for all 50 wallet addresses in my list? I want to see how much each one holds.

## When to prefer this

Use this endpoint when you need to batch-query ERC-20 token balances for many wallets (up to 500) in a single API call across Base, Ethereum, Optimism, Arbitrum, or Polygon. It is ideal for portfolio aggregation, airdrop analysis, whale tracking, and fund accounting where querying wallets one-by-one would be slow or expensive. Prefer this over single-address RPC calls when bulk efficiency matters.

## Known failure modes

- Invalid or malformed EVM address in the array returns an error or null balance for that entry
- Unsupported chain identifier causes a 400-level error
- Addresses array exceeding 500 entries may be rejected
- Invalid ERC-20 contract address returns an error or empty result
- Network congestion or RPC unavailability may cause timeouts
- Payment of $0.01 USDC not fulfilled triggers 402 Payment Required

## How this service works

On-chain Token Balances (bulk)

## Output

Returns a mapping of each queried EVM address to its current balance of the specified ERC-20 token (defaulting to USDC) on the chosen blockchain network, covering up to 500 addresses per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "base | ethereum | optimism | arbitrum | polygon."
  },
  "token": {
   "type": "string",
   "description": "ERC-20 contract; defaults to USDC."
  },
  "addresses": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "1-500 EVM addresses."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "token": {
   "symbol": "USDC",
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "decimals": 6
  },
  "failed": 0,
  "chainId": 8453,
  "holders": [
   {
    "raw": "1234560000",
    "address": "0x0000000000000000000000000000000000000001",
    "balance": "1234.56"
   }
  ],
  "queried": 1,
  "totalBalance": "1234.56"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfund-on-chain-token-balances-bulk-996ea89c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentfund.net](https://www.zero.xyz/host/x402.agentfund.net/llms.txt)
