# Base ERC-20 Token Supply Lookup

> Base ERC-20 Token Supply Lookup is a paid API for AI agents from heb-utils-x402.hebutils-api.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the total supply and decimal precision of an ERC-20 token contract on the Base blockchain.

## Facts

- Endpoint: GET https://heb-utils-x402.hebutils-api.workers.dev/base-erc20-supply?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-erc-20-token-supply-lookup-9b4b9716
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IvzuQ1EE36vgWCrE4QEtj

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 base-erc-20-token-supply-lookup-9b4b9716
```

Example prompt: What's the total supply and decimal places for the ERC-20 token at address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Base?

## When to prefer this

Use this endpoint when you need quick, pay-per-call on-chain lookup of ERC-20 total supply and decimals specifically on the Base L2 network, without setting up your own RPC infrastructure. Particularly useful for agents that need sporadic, low-cost token metadata lookups rather than bulk data pipelines.

## Known failure modes

- Invalid or missing token address returns an error response
- Non-existent contract address on Base yields no data or an error
- Network or RPC timeout causes call failure
- Payment failure (insufficient USDC balance) blocks the request via x402 protocol

## How this service works

Pay-per-call utility APIs in USDC on Base: Hebrew calendar and text tools, Shabbat times, Base token control-risk screen and address summary, plus finance arithmetic tools. General information and arithmetic only; not investment, tax or legal advice and not a recommendation to buy, sell or hold anything.

## Output

A JSON object with two fields: 'decimals' (integer indicating how many decimal places the token uses, e.g. 6 for USDC) and 'total_supply' (string representing the raw total supply of the token, in its smallest unit).

## 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",
     "properties": {
      "token": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "decimals": 6,
  "total_supply": "1000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-erc-20-token-supply-lookup-9b4b9716/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from heb-utils-x402.hebutils-api.workers.dev](https://www.zero.xyz/host/heb-utils-x402.hebutils-api.workers.dev/llms.txt)
