# hcrb.in ERC-20 Balance on Base

> hcrb.in ERC-20 Balance on Base is a paid API for AI agents from hcrb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-16).

Returns raw and formatted ERC-20 token balance for a given address on Base, reading decimals from the token contract, with a signed receipt attached.

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/erc20-balance/call?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hcrb-in-erc-20-balance-on-base-2eae5388
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HiUWgvf7pbUBpTWH0LYDu

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 hcrb-in-erc-20-balance-on-base-2eae5388 -d '<json body>'
```

Example prompt: What's the USDC balance for wallet 0xAbC...123 on Base? Use the ERC-20 balance tool on hcrb.in to get me both the raw and formatted amount with a signed receipt.

## When to prefer this

Choose this endpoint when you need a verifiable, signed ERC-20 balance lookup on Base specifically, with both raw and human-readable output in a single call. Prefer it over generic RPC calls when you need the signed receipt for auditability or downstream trust, or when you want decimals automatically resolved from the token contract without writing your own contract calls.

## Known failure modes

- Invalid or malformed EVM address returns a validation error
- Token contract address does not exist or is not ERC-20 compliant — balance read fails
- Network connectivity issues to Base RPC result in a timeout
- Incorrect decimals override produces a misleading formatted balance but does not error
- Payment of 0.005 USDC not provided — request rejected with 402

## How this service works

Raw and formatted ERC-20 balanceOf for an address on Base, with decimals read from the token. Result carries a signed receipt.

## Output

Returns the raw integer balance (as returned by balanceOf), the human-readable formatted balance (divided by token decimals), the decimals value read from the token contract (or the override if supplied), and a cryptographically signed receipt attesting to the on-chain result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "address",
    "token_address"
   ],
   "properties": {
    "address": {
     "type": "string",
     "description": "Holder EVM address, 0x-prefixed."
    },
    "decimals": {
     "type": "number",
     "description": "Token decimals override (optional)."
    },
    "token_address": {
     "type": "string",
     "description": "ERC-20 token contract address, 0x-prefixed."
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hcrb-in-erc-20-balance-on-base-2eae5388/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
