# Tollkit Chain Balance

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

Returns the native token and ERC-20/SPL token balances for a given wallet or contract address on Base, Ethereum, or Solana, paid per-call via x402 in USDC.

## Facts

- Endpoint: POST https://data.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-99037b32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZhCJZ2lN7Fmsiu9-OiCnT

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-99037b32 -d '<json body>'
```

Example prompt: Check the native balance and USDC token balance (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum.

## When to prefer this

Choose this endpoint when you need on-chain balance data for a wallet or contract without registering an API key — ideal for agent workflows where pay-per-call x402 micropayments are preferred over subscription billing. Best for quick, single-address balance lookups across Base, Ethereum, or Solana with optional multi-token support.

## Known failure modes

- Invalid or malformed wallet address returns a validation error
- Unsupported chain value (outside base/ethereum/solana enum) causes a 400 error
- Invalid ERC-20 contract or SPL mint address in tokens array causes partial or failed lookup
- Payment failure via x402 (insufficient USDC, wrong chain) causes a 402 Payment Required response
- Rate-limiting or node unavailability may cause transient 5xx errors

## 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 the native token balance and any requested ERC-20 or SPL token balances for the queried address on the specified chain. Typically includes token amounts, decimals, and contract/mint identifiers for each asset.

## 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-99037b32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.tollkit.dev](https://www.zero.xyz/host/data.tollkit.dev/llms.txt)
