# Base ERC-20 Total Supply Lookup

> Base ERC-20 Total Supply Lookup is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-21).

Returns the raw and human-readable total supply of any ERC-20 token on Base mainnet via a read-only eth_call

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/base-total-supply?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-erc-20-total-supply-lookup-0c78e6ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SnN07p5x23i_V_-OqsDEf

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-total-supply-lookup-0c78e6ae -d '<json body>'
```

Example prompt: What's the total supply of USDC on Base? The contract address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — give me both the raw number and the human-readable amount.

## When to prefer this

Use this endpoint when you specifically need the ERC-20 totalSupply of a token deployed on Base mainnet (eip155:8453) and want both the raw big-integer value and a decimals-adjusted human-readable figure in a single call. Prefer this over general blockchain RPC calls when you want a simple JSON interface without managing raw eth_call encoding. Try the free sandbox endpoint at /v1/sandbox/base-total-supply first before spending $0.001 USDC per paid call.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error or empty response
- Token contract does not implement decimals() — human-readable total_supply may be absent, only raw returned
- Contract address on wrong network (not Base mainnet) returns an error
- Malformed JSON input (missing 'token' field) returns a 400-level error
- Network RPC failure or Base node unavailability causes a timeout or 5xx error

## How this service works

Call when an agent needs ERC-20 totalSupply for one Base token, raw and human when decimals() is readable. Send token (example Circle USDC). Read-only eth_call on eip155:8453. No spend. Send JSON {"token":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}. Exact $0.001 USDC on Base. Try unpaid POST /v1/sandbox/base-total-supply first.

## Output

Returns a JSON object containing total_supply_raw (the raw integer from the ERC-20 totalSupply() call) and total_supply (the human-readable value adjusted by the token's decimals, when decimals() is readable). No state is modified; this is a pure read-only eth_call on Base mainnet (eip155:8453).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "token": {
   "type": "string",
   "examples": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
   ],
   "description": "ERC-20 contract on Base mainnet. Example: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913. Returns total_supply_raw and a human total_supply when decimals() is readable. Read-only."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-erc-20-total-supply-lookup-0c78e6ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
