# Tollkit Chain Balance

> Tollkit Chain Balance is a paid API for AI agents from web.tollkit.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns native token and ERC-20/SPL token balances for a wallet or contract address on Base, Ethereum, or Solana.

## Facts

- Endpoint: POST https://web.tollkit.dev/chain/balance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollkit-chain-balance-70d5c3bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gno374IJVsQSawLref8nk

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 tollkit-chain-balance-70d5c3bf -d '<json body>'
```

Example prompt: Check the Base chain balance for wallet 0xAbCd1234...5678, and also include the USDC token at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call on-chain balance lookup without setting up an account or managing API keys — especially useful for one-off agent tasks on Base, Ethereum, or Solana where the x402 micropayment model fits. Prefer it over full blockchain indexers or account-based APIs when simplicity and low cost per call matter more than high-volume throughput.

## Known failure modes

- Invalid address format returns a validation error
- Unsupported chain value causes rejection
- Requesting more than 20 token contracts is rejected
- Network/RPC errors may cause intermittent failures
- Unknown token contract addresses return zero balance
- Payment via x402 fails if wallet has insufficient USDC

## How this service works

Pay-per-call product page extraction. No account, no API key: pay in-band with x402 in USDC on Base or Solana.

## Output

Returns a structured response with the native token balance (ETH, SOL, etc.) and balances for any requested ERC-20 or SPL token contracts associated with the queried address on the specified chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "solana"
   ],
   "type": "string",
   "default": "base",
   "description": "Which chain to read: \"base\" (default), \"ethereum\" or \"solana\"."
  },
  "tokens": {
   "type": "array",
   "items": {
    "type": "string",
    "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$"
   },
   "maxItems": 20,
   "description": "Extra ERC-20 contracts (or SPL mints on Solana) to include."
  },
  "address": {
   "type": "string",
   "pattern": "^(0x[0-9a-fA-F]{40}|[1-9A-HJ-NP-Za-km-z]{32,44})$",
   "description": "Wallet (or contract) address to check."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollkit-chain-balance-70d5c3bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web.tollkit.dev](https://www.zero.xyz/host/web.tollkit.dev/llms.txt)
