# Wallet Portfolio Token Balances (ERC20, Multi-Chain)

> Wallet Portfolio Token Balances (ERC20, Multi-Chain) is a paid API for AI agents from wallet-portfolio-history-mcp.mtree.workers.dev, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Returns curated ERC20 token balances for a wallet address across high-volume EVM chains, with D1-backed historical snapshots and source coverage metadata.

## Facts

- Endpoint: POST https://wallet-portfolio-history-mcp.mtree.workers.dev/tools/token_balances
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-portfolio-token-balances-erc20-multi-chain-b4a0b360
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_435s01tTxqlIwCNtnE558

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-portfolio-token-balances-erc20-multi-chain-b4a0b360 -d '<json body>'
```

Example prompt: Pull the current ERC20 token balances for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 across all major EVM chains and show me the full token list with amounts.

## When to prefer this

Choose this endpoint when you need a curated, multi-chain ERC20 token balance snapshot for a specific wallet — especially when historical comparison, source provenance, or coverage metadata is important. Prefer this over raw on-chain RPC calls when you need normalized, enriched data ready for downstream wallet diligence or risk analysis workflows.

## Known failure modes

- Invalid or malformed wallet address returns an error response
- Unsupported chain yields empty or partial results
- Payment failure (x402 USDC not authorized) blocks the request
- Wallet with no ERC20 activity returns empty token list
- D1 snapshot stale or unavailable may return outdated balances

## How this service works

Curated ERC20 token balances across high-volume EVM chains with D1-backed historical wallet snapshots and source coverage. Price 0.15 USDC on Base via x402. Demo: https://wallet-portfolio-history-mcp.mtree.workers.dev/demo/tools/token_balances. Contact: https://wallet-portfolio-history-mcp.mtree.workers.dev/contact.

## Output

A curated list of ERC20 token balances held by the queried wallet across high-volume EVM chains, enriched with token metadata (symbol, amount, chain), historical D1-backed snapshot data, and source coverage details indicating where balance data was sourced from.

## Example request

```json
{
 "input": {
  "body": {
   "chain": "ethereum",
   "limit": 10,
   "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 50,
       "minimum": 1
      },
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "refresh": {
       "type": "boolean"
      }
     }
    },
    "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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-portfolio-token-balances-erc20-multi-chain-b4a0b360/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wallet-portfolio-history-mcp.mtree.workers.dev](https://www.zero.xyz/host/wallet-portfolio-history-mcp.mtree.workers.dev/llms.txt)
