# ScanPay Token Balance Batch

> ScanPay Token Balance Batch is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-01).

Batch-fetches ERC-20 token balances for up to 10 wallet/token pairs on Base or Ethereum networks in a single call.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/token-balance-batch?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scanpay-token-balance-batch-a0313919
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HzV30g28WRpBUHl6m23XN

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 scanpay-token-balance-batch-a0313919
```

Example prompt: Can you check the USDC balance (token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) for these three wallets on Ethereum: 0xabc...111, 0xdef...222, and 0x123...333?

## When to prefer this

Choose this endpoint when you need to query ERC-20 token balances for multiple wallet/token pairs on Base or Ethereum in a single batched call, avoiding multiple round-trips. It is ideal for portfolio snapshots, airdrop eligibility checks, funding verifications, or any workflow needing bulk balance data without running your own node. Prefer this over single-balance lookups when you have 2–10 pairs to check simultaneously, and over full blockchain indexers when you only need current balances rather than historical data.

## Known failure modes

- Invalid or malformed wallet/token address returns an error entry with ok:false for that pair
- Unsupported network (not Base or Ethereum) may return an error or empty result
- More than 10 wallet/token pairs submitted may be rejected or truncated
- RPC node unavailability may cause transient eth_call failures
- Token contract that is not a standard ERC-20 may return unexpected results or fail balanceOf call
- Rate limiting or payment failure may block the request entirely

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object containing a results array of up to 10 items, each with the wallet address, token contract address, network, raw balance as a number, human-readable balance string (formatted with token decimals), token decimals, and a success flag. Also includes a count of results, the product identifier, and the USD price charged for the call.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "items"
     ],
     "properties": {
      "items": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "address",
         "token"
        ],
        "properties": {
         "token": {
          "type": "string"
         },
         "address": {
          "type": "string"
         },
         "network": {
          "enum": [
           "base",
           "ethereum"
          ],
          "type": "string"
         }
        }
       }
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "product": "scanpay.token_balance_batch",
  "results": [
   {
    "ok": true,
    "token": "0x8335…",
    "address": "0x0000…",
    "balance": 1,
    "network": "base",
    "decimals": 6,
    "balance_str": "1.000000"
   }
  ],
  "price_usd": 0.005
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scanpay-token-balance-batch-a0313919/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
