# CoreForge Chain Reads — ERC-20 Token Balance

> CoreForge Chain Reads — ERC-20 Token Balance is a paid API for AI agents from coreforge-memory.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Returns the ERC-20 token balance of a given address on the Base blockchain, including symbol, decimals, and both human-readable and raw balances.

## Facts

- Endpoint: GET https://coreforge-memory.onrender.com/x402/chain/token-balance?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coreforge-chain-reads-erc-20-token-balance-72075d28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S5GK3VVBZoGaUF0cndcbz

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 coreforge-chain-reads-erc-20-token-balance-72075d28
```

Example prompt: What's the USDC balance for the wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Base — give me both the readable amount and the raw balance?

## When to prefer this

Use this endpoint when you need on-chain ERC-20 token balance data specifically on the Base blockchain, with both human-readable and raw (base unit) values returned in a single call. Prefer it over generic RPC calls when you want a managed, pay-per-use API without managing your own node. Best suited for agents that need quick balance lookups in DeFi workflows, portfolio checks, or pre-transaction validations on Base.

## Known failure modes

- Invalid or malformed holder address returns an error (e.g. wrong length or non-hex)
- Invalid token contract address (not an ERC-20 contract on Base) returns an error or zero balance
- Token contract exists on a different chain (not Base) returns incorrect or empty result
- RPC node timeout or Base chain congestion may cause intermittent failures
- Address with zero balance returns a valid response with balance of 0, which may be confused for an error

## How this service works

Base chain read — ERC-20 token balance of an address

## Output

Returns a JSON object with the holder address, token contract address, token symbol, number of decimals, human-readable balance (as a number), raw balance in base units (as a string), chain name (Base), and chain ID.

## 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",
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "ERC-20 token contract address on Base"
      },
      "address": {
       "type": "string",
       "description": "Holder address (0x, 40 hex chars)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "address": {
       "type": "string"
      },
      "balance": {
       "type": "number",
       "description": "Balance in token units"
      },
      "chainId": {
       "type": "integer"
      },
      "decimals": {
       "type": "integer"
      },
      "rawBalance": {
       "type": "string",
       "description": "Balance in base units (string)"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coreforge-chain-reads-erc-20-token-balance-72075d28/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coreforge-memory.onrender.com](https://www.zero.xyz/host/coreforge-memory.onrender.com/llms.txt)
