# agent402.tools Wallet Balances

> agent402.tools Wallet Balances is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetch all token balances (ERC-20, native, and SPL) for any EVM or Solana wallet address in a single API call using Coinbase's indexed data

## Facts

- Endpoint: GET https://agent402.tools/api/wallet-balances
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-wallet-balances-69393ef8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jYh9AxXDQ5HC1tHMY_QGK

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 agent402-tools-wallet-balances-69393ef8
```

Example prompt: What tokens does wallet 0x742d35Cc6634C0532925a3b8D4C9B7e8f2d4A1b9 hold on Base — show me all balances including ERC-20s and the native ETH?

## When to prefer this

Use this endpoint when you need all token balances for a wallet in a single call without RPC node access or per-token contract calls. Ideal for portfolio aggregation, balance checks across EVM chains (Base, Ethereum, Base Sepolia) and Solana, leveraging Coinbase-indexed data for reliability and speed. Prefer this over direct RPC calls when simplicity, cost-effectiveness ($0.002/call), and multi-token aggregation matter.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Address format mismatch (e.g. EVM address on Solana network) causes failure
- Unsupported network name returns an error
- Rate limiting or payment failure (402) if x402 payment not properly handled
- Network-specific downtime may cause intermittent failures

## How this service works

All token balances for any address in one call, from Coinbase's indexed data API - ERC-20 + native on EVM, SPL on Solana; no per-token contract calls, no RPC wrangling. Networks: base, ethereum, base-sepolia, solana, solana-devnet. Symbols/decimals populated for whitelisted tokens (USDC always included).

## Output

A list of all token balances held by the specified wallet address on the given network, including token symbols, decimal-adjusted amounts, and both ERC-20/native tokens (EVM) or SPL tokens (Solana) — no need to call individual token contracts.

## 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": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Wallet address - EVM 0x… or Solana base58, matching the network"
      },
      "network": {
       "type": "string",
       "description": "base (default) | ethereum | base-sepolia | solana | solana-devnet"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "address",
      "network",
      "balances",
      "count"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "address": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "balances": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "raw": {
          "type": "string"
         },
         "name": {
          "type": "string"
         },
         "amount": {
          "type": "string"
         },
         "symbol": {
          "type": "string"
         },
         "contract": {
          "type": "string"
         },
         "decimals": {
          "type": "integer"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
  "network": "base",
  "balances": [
   {
    "raw": "8655000",
    "name": "USD Coin",
    "amount": "8.655",
    "symbol": "USDC",
    "contract": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "decimals": 6
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-wallet-balances-69393ef8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
