# Chain Live Balance Lookup

> Chain Live Balance Lookup is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Fetches the live on-chain token balances for a given Ethereum-compatible wallet address on Base or Ethereum networks.

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/chain/live-balance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-live-balance-lookup-0befc5ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Beqgth1W0Yz6kpzjS38gW

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 chain-live-balance-lookup-0befc5ec -d '<json body>'
```

Example prompt: What are the live token balances for wallet address 0xAbC1234567890123456789012345678901234567 on Base, including holdings for token contracts 0xDef...1 and 0xGhi...2?

## When to prefer this

Use this endpoint when you need real-time, live on-chain token balance data for a specific wallet address on Base or Ethereum. It is ideal for DeFi portfolio monitoring, agent treasury checks, and multi-token balance lookups in a single call. Prefer this over centralized exchange APIs when you need trustless, chain-verified balance data. The x402 micropayment model makes it cost-effective for per-query agent workflows without subscription overhead.

## Known failure modes

- Invalid Ethereum address format (not matching 0x + 40 hex chars) returns a validation error
- Unsupported network value returns an enum mismatch error
- More than 20 token addresses in the tokens array exceeds the maxItems limit and is rejected
- RPC node unavailability or blockchain congestion may cause timeouts
- Wallet with no holdings returns empty or zero balances rather than an error
- Payment failure via x402 protocol prevents request from processing

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object with live on-chain balance data for the specified wallet address, including balances for each requested token contract address on the specified network (Base or Ethereum). The response confirms readiness with a status field and includes the wallet's current holdings.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "tokens": {
       "type": "array",
       "items": {
        "type": "string",
        "pattern": "^0x[a-fA-F0-9]{40}$"
       },
       "maxItems": 20
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chain-live-balance-lookup-0befc5ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
