# Wallet Balance: ETH and ERC-20 Tokens

> Wallet Balance: ETH and ERC-20 Tokens is a paid API for AI agents from apexfaucet.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the native ETH (or equivalent) balance plus ERC-20 token balances for a given wallet address on Ethereum, Base, Arc, or BNB Chain.

## Facts

- Endpoint: GET https://apexfaucet.xyz/api/x402/evm-wallet-balance?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-balance-eth-and-erc-20-tokens-d27c98a6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gfLDFaER0vkA_zjtTLxeu

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 wallet-balance-eth-and-erc-20-tokens-d27c98a6
```

Example prompt: What's the ETH balance and USDC balance of 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum right now?

## When to prefer this

Choose this endpoint when you need a quick, low-cost on-chain balance read for a single wallet across Ethereum, Base, Arc, or BNB Chain without running your own node. It supports up to 20 ERC-20 tokens per call in addition to the native balance, making it efficient for portfolio snapshots. Prefer it over generic blockchain explorers when you need machine-readable JSON output suitable for agent workflows and are happy to pay a $0.002 micropayment via x402.

## Known failure modes

- Invalid wallet address format (must match ^0x[0-9a-fA-F]{40}$) returns an error
- Unsupported chain value returns an error — only 'ethereum', 'base', 'arc', 'bnb' are accepted
- More than 20 ERC-20 token addresses provided may cause truncation or error
- Payment failure (insufficient USDC balance for x402 micropayment) blocks the request
- Unrecognized or non-existent token contract addresses may return zero balances silently
- Network congestion or RPC downtime on the target chain may cause timeout errors

## How this service works

Free APEX on X1, and free USDC plus APEX on Arc, three times a day. No gas, no sign-up. Plus a swap, a screener, APEX City and token checks.

## Output

Returns a JSON object with ok status, the queried chain and block number, the wallet's native balance (e.g. ETH) as both a raw big-integer string and a human-readable decimal, an array of ERC-20 token balances each with symbol/decimals/raw/balance fields, the wallet address, block timestamp, whether the address is a smart contract, the account nonce, and the amount paid in USDC.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "ethereum",
        "base",
        "arc",
        "bnb"
       ],
       "type": "string",
       "description": "Chain to read: ethereum, base, arc or bnb. Default ethereum."
      },
      "tokens": {
       "type": "string",
       "description": "Optional: up to 20 ERC-20 addresses, comma separated. Default: the chain USDC."
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "Wallet to read."
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "properties": {
   "ok": {
    "type": "boolean"
   },
   "data": {
    "type": "object"
   },
   "paid": {
    "type": "number"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-balance-eth-and-erc-20-tokens-d27c98a6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apexfaucet.xyz](https://www.zero.xyz/host/apexfaucet.xyz/llms.txt)
