# Ethereum ERC-20 Balance (balanceOf)

> Ethereum ERC-20 Balance (balanceOf) is a paid API for AI agents from api.arysphere.com, paid per call via x402, $0.002/call, status down (last checked 2026-12-03).

Returns the live ERC-20 token balance of a holder address on Ethereum mainnet by calling balanceOf on the specified contract.

## Facts

- Endpoint: POST https://api.arysphere.com/v1/ventures/x402_chain_reads_v1/eth_erc20_balanceof?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: down
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-erc-20-balance-balanceof-7d8d4168
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BOAmquF9yd637YEWqlu0y

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 ethereum-erc-20-balance-balanceof-7d8d4168 -d '<json body>'
```

Example prompt: What's the current ERC-20 token balance for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 holding the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet?

## When to prefer this

Choose this endpoint when you need a live, real-time balanceOf read for any ERC-20 token on Ethereum mainnet and want a simple paid API without managing your own RPC node. Prefer it over generic Ethereum node providers when you want per-call micropayment billing via x402 and don't need batch reads or event log history.

## Known failure modes

- Invalid or malformed token address (not matching 0x + 40 hex) returns a validation error
- Invalid or malformed holder address returns a validation error
- Contract address is not an ERC-20 contract — balanceOf call may revert or return unexpected data
- Ethereum node unavailability or network congestion may cause timeouts
- Payment failure (x402) if USDC balance is insufficient for the $0.002 fee

## Output

Returns the raw ERC-20 balanceOf value for the specified holder address against the given token contract on Ethereum mainnet, reflecting the live on-chain balance at the time 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "token": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC-20 contract, 0x + 40 hex"
      },
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "holder, 0x + 40 hex"
      }
     }
    }
   },
   "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/ethereum-erc-20-balance-balanceof-7d8d4168/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.arysphere.com](https://www.zero.xyz/host/api.arysphere.com/llms.txt)
