# AllTheBot Wallet Balance (Base)

> AllTheBot Wallet Balance (Base) is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Returns live ETH and ERC-20 token balances (including USDC and up to 5 custom tokens) for any address on Base mainnet

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/base/wallet?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-wallet-balance-base-7fbb1341
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dMwDmwv1PAR7DiOoEkrVp

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 allthebot-wallet-balance-base-7fbb1341
```

Example prompt: What's the current ETH and USDC balance of 0x60fd97850059dF9600C4E26f09aC58EF51561963 on Base? Also check the ERC-20 balance for token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.

## When to prefer this

Choose this endpoint when you need a no-API-key, pay-per-call balance check specifically on Base mainnet — ideal for pre-flight funding checks before swaps or payments, portfolio snapshots, or agent pipelines that need live on-chain balances without managing API credentials. Prefer this over general blockchain explorers when you need ETH plus multiple ERC-20 balances in a single call on Base.

## Known failure modes

- Invalid address format (not a valid 0x hex address) returns an error
- Requested token address not found or not an ERC-20 contract returns zero or error
- Base mainnet RPC unavailable causes timeout or 5xx response
- More than 5 ERC-20 token addresses provided exceeds maxItems constraint
- Payment of 0.0015 USDC not included causes 402 Payment Required response

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

A JSON object with the ETH balance (as a decimal string), the Base network identifier, the queried address, and an array of token objects each containing the token contract address, symbol, human-readable balance, and raw balance integer — covering USDC by default and up to 5 additional ERC-20 tokens if specified.

## 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",
     "required": [
      "address"
     ],
     "properties": {
      "tokens": {
       "type": "array",
       "items": {
        "type": "string",
        "pattern": "^0x[0-9a-fA-F]{40}$"
       },
       "maxItems": 5
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "eth": "0.00125088",
  "tokens": [
   {
    "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "symbol": "USDC",
    "balance": "14.946508",
    "balance_raw": "14946508"
   }
  ],
  "address": "0x60fd97850059dF9600C4E26f09aC58EF51561963",
  "network": "base"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-wallet-balance-base-7fbb1341/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
