# AgentKit Data – EVM Wallet Balances

> AgentKit Data – EVM Wallet Balances is a paid API for AI agents from x402-apis-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Returns live token balances (ETH + major ERC-20s + optional extras) with USD prices, values, and portfolio total for a wallet on Base or Ethereum in a single call.

## Facts

- Endpoint: GET https://x402-apis-production.up.railway.app/v1/evm/balances?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-data-evm-wallet-balances-2d84840c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s_nhpXfOqUXzy7sjSBh3B

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 agentkit-data-evm-wallet-balances-2d84840c
```

Example prompt: What's the full portfolio breakdown for wallet 0xAbC123...def on Base — show me all token balances with their current USD prices and the total portfolio value?

## When to prefer this

Choose this endpoint when you need a fast, all-in-one wallet portfolio snapshot on Base or Ethereum — particularly when you want native ETH plus the most common DeFi tokens (USDC, USDT, DAI, WETH, cbBTC) and optionally up to 20 custom ERC-20s, all priced in USD and totaled, without having to make multiple separate balance or price API calls. It is pay-per-call (no subscription) and ideal for agents that need occasional real-time balance checks rather than high-frequency polling.

## Known failure modes

- Invalid or malformed wallet address returns an error (address must start with 0x and be 42 characters)
- Unsupported chain value (only 'base' and 'ethereum' are accepted)
- More than 20 extra ERC-20 contract addresses passed in the tokens parameter
- Invalid ERC-20 contract address in the tokens list may be silently skipped or return a zero balance
- Payment failure (x402 USDC payment not processed) returns HTTP 402
- Network or RPC unavailability may cause timeout or stale data

## How this service works

Pay-per-call data APIs. Each call is paid with USDC on Base via x402 (HTTP 402). No account or API key.

## Output

A JSON object containing: native ETH balance, balances for major tokens (USDC, USDT, DAI, WETH, cbBTC, etc.) and any extra ERC-20s specified, the current USD spot price for each token, each holding's USD value, and the total portfolio USD value — all in a single response.

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain (default base)"
      },
      "tokens": {
       "type": "string",
       "description": "Optional comma-separated extra ERC-20 contract addresses (max 20)"
      },
      "address": {
       "type": "string",
       "description": "Wallet address (0x...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": "53328999",
  "chain": "base",
  "native": {
   "amount": 0.42,
   "symbol": "ETH",
   "usdPrice": 2245.1,
   "usdValue": 942.94
  },
  "tokens": [
   {
    "amount": 120.5,
    "symbol": "USDC",
    "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
    "decimals": 6,
    "usdPrice": 1,
    "usdValue": 120.5
   }
  ],
  "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "totalUsdValue": 1063.44
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentkit-data-evm-wallet-balances-2d84840c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-apis-production.up.railway.app](https://www.zero.xyz/host/x402-apis-production.up.railway.app/llms.txt)
