# AgentUtility Token Balance Lookup

> AgentUtility Token Balance Lookup is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the token balance of a wallet address for a specific ERC-20 token on a given chain

## Facts

- Endpoint: POST https://x402.agentutility.ai/token-balance
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-token-balance-lookup-389335de
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uSQwMMusL_0zolUhzmDAf

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 agentutility-token-balance-lookup-389335de -d '<json body>'
```

Example prompt: What's the current USDC balance (token 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) for wallet 0x8f5cb67b49555e614892b7233cfddebfb746e531 on Base?

## When to prefer this

Use this endpoint when you need a fast, pay-per-call on-chain ERC-20 token balance lookup without managing your own RPC infrastructure. Ideal for AI agents that need to verify wallet holdings, check USDC balances before a payment flow, or enrich user data with on-chain token balances — especially when operating on Base and paying via x402/USDC microtransactions.

## Known failure modes

- Invalid wallet address format — malformed hex address returns an error
- Unsupported chain — chain not available on this endpoint
- Invalid token contract address — token not found or non-ERC-20 contract
- Network or RPC errors — upstream blockchain node unavailable
- Insufficient x402 payment — call rejected if USDC payment of $0.005 is not attached

## How this service works

Paid x402 endpoints organized into product clusters. USDC-settled on Base. MCP-callable. ERC-8004 identity registry agentId 47167.

## Output

Returns a JSON object with the chain identifier, token contract address, queried wallet address, human-readable balance (e.g. '1234.56'), and the raw integer balance in smallest token units (e.g. '1234560000').

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "token": {
       "type": "string",
       "description": "ERC-20 contract address (0x...)."
      },
      "wallet": {
       "type": "string",
       "description": "Wallet address to query (0x...)."
      },
      "chain": {
       "description": "Chain id or slug. Default 'base'; also ethereum, arbitrum, optimism, polygon, bsc, avalanche."
      },
      "block": {
       "description": "'latest' default, or hex/decimal block number."
      }
     },
     "required": [
      "token",
      "wallet"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "string"
      },
      "wallet": {
       "type": "string"
      },
      "balance_raw": {
       "type": "string"
      },
      "balance": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "wallet": "0x8f5cb67b49555e614892b7233cfddebfb746e531",
  "balance": "1234.56",
  "balance_raw": "1234560000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-token-balance-lookup-389335de/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
