# Wallet Balance — Native ETH/Base + ERC-20

> Wallet Balance — Native ETH/Base + ERC-20 is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns the native ETH/Base balance and up to 20 ERC-20 token balances for a given wallet address on Base or Ethereum.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/wallet-balance?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-balance-native-eth-base-erc-20-512c2795
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xW_8geTFqErPmWq24GZi_

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-native-eth-base-erc-20-512c2795
```

Example prompt: What's the native ETH balance and USDC balance (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) for wallet 0x1E04f5046500e5369E17AF993Dc60aC29D83efc9 on Base?

## When to prefer this

Use this endpoint when you need both native (ETH/Base) and multiple ERC-20 balances for a single wallet in one call, especially on Base or Ethereum mainnet, and want a pay-per-call model without managing an RPC node or API key. Prefer this over raw RPC calls when you want a clean JSON abstraction and are already operating within an x402 payment-enabled agent context.

## Known failure modes

- Invalid or malformed wallet address returns an error
- Unsupported network or chain ID returns an error
- ERC-20 contract address not found on specified chain returns null or zero balance
- Rate limiting or payment failure (x402) returns 402 Payment Required
- More than 20 token addresses supplied may be rejected or truncated

## 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

A JSON object containing the wallet address, network name, chain ID, native balance in ETH and wei, an array of ERC-20 token balances (each with raw balance and contract address), and the USD price of 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": [
      "address"
     ],
     "properties": {
      "tokens": {
       "type": "array",
       "items": {
        "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": {
  "native": 0.001,
  "tokens": [
   {
    "raw": 1000000,
    "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
   }
  ],
  "address": "0x1E04f5046500e5369E17AF993Dc60aC29D83efc9",
  "network": "base",
  "product": "scanpay.wallet_balance",
  "chain_id": "eip155:8453",
  "price_usd": 0.003,
  "native_wei": 1000000000000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-balance-native-eth-base-erc-20-512c2795/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)
