# Beggar Bot ERC-20 Token Balance Lookup (Base Mainnet)

> Beggar Bot ERC-20 Token Balance Lookup (Base Mainnet) is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-04).

Fetches ERC-20 token balances (and optionally native ETH) for up to 25 wallet addresses on Base mainnet or Base Sepolia, paid via x402 micropayment.

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/erc20balances?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-erc-20-token-balance-lookup-base-mainnet-bb8888c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8gZqeNnN_wj-AgO6XS-R4

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 beggar-bot-erc-20-token-balance-lookup-base-mainnet-bb8888c8
```

Example prompt: Check the USDC and WETH balances for these two wallets on Base mainnet: 0xAbC...111 and 0xDeF...222 — also include native ETH.

## When to prefer this

Use this endpoint when you need on-chain ERC-20 (and optionally native) token balances for one or more wallet addresses on Base mainnet or Base Sepolia, especially in automated agent workflows that can handle x402 micropayments. Prefer it over generalist blockchain APIs when you need a simple, low-cost per-call pricing model on Base and want to query up to 25 addresses and 25 tokens in a single call.

## Known failure modes

- Payment not received or insufficient USDC — 402 payment required response
- Invalid wallet address format — 400 bad request
- More than 25 addresses or tokens submitted — request rejected or truncated
- Invalid token contract address — zero or error balance returned
- Unsupported chain value — defaults to base or returns error
- Network congestion on Base causing delayed RPC response

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns a JSON object mapping each queried wallet address to its balances for each requested ERC-20 token (and optionally native ETH), on the specified chain (Base mainnet by default or Base Sepolia).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "base (default)"
      },
      "native": {
       "type": "string",
       "description": "true|false"
      },
      "tokens": {
       "type": "string",
       "description": "comma token 0x list ≤25"
      },
      "addresses": {
       "type": "string",
       "description": "comma 0x list ≤25"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-erc-20-token-balance-lookup-base-mainnet-bb8888c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
