# Wallet Token Portfolio

> Wallet Token Portfolio is a paid API for AI agents from flat-rate-llm.kikoribera03.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Fetches native ETH balance plus balances of specified ERC20 tokens for a wallet address on a single EVM chain, with symbols and decimals already applied, in one API call.

## Facts

- Endpoint: POST https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/portfolio
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wallet-token-portfolio-3390be84
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fXWdkT2XfTQeu0FECQABY

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-token-portfolio-3390be84 -d '<json body>'
```

Example prompt: Can you pull the full token portfolio for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet — I want the ETH balance plus USDC (0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) and WETH (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2), all with decimals already applied?

## When to prefer this

Use this endpoint when you need native balance plus multiple ERC20 token balances for a single wallet on one EVM chain in a single round-trip — it saves you from making one eth_getBalance call plus N separate eth_call calls and manually applying decimals. Prefer this over raw contract calls or individual balance checks when building portfolio views, pre-trade liquidity checks, or wallet audits where batch efficiency matters.

## Known failure modes

- Invalid or malformed wallet address returns an error response
- Unsupported chain identifier causes a chain-not-found error
- Invalid token contract address (e.g. not an ERC20) may return zero or cause a revert
- Payment not included or insufficient USDC causes a 402 Payment Required response
- Network congestion on the target chain may cause timeouts
- Token with non-standard decimals implementation may return unexpected amounts

## How this service works

60 paid endpoints with no metering, no API key and no account. Each endpoint has one flat price per call, whatever the size of the request: LLM completions with automatic failover across several large models, read-only EVM tooling over Base, Ethereum, Polygon, Arbitrum and Optimism, and pure crypto utilities that touch no network.

## Output

A JSON object containing a 'native' field with the ETH balance in ether, and a 'tokens' array where each entry has the human-readable decimal-adjusted amount and the token symbol — ready to display or process without further conversion.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "address"
 ],
 "properties": {
  "chain": {
   "type": "string",
   "description": "base | ethereum | polygon | arbitrum | optimism."
  },
  "tokens": {
   "type": "array",
   "description": "Up to 20 ERC20 contract addresses."
  },
  "address": {
   "type": "string",
   "description": "Wallet to inspect."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "native": {
   "type": "object"
  },
  "tokens": {
   "type": "array",
   "items": {
    "type": "object"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wallet-token-portfolio-3390be84/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from flat-rate-llm.kikoribera03.workers.dev](https://www.zero.xyz/host/flat-rate-llm.kikoribera03.workers.dev/llms.txt)
