# Tokensupply - ERC-20 Token Total Supply

> Tokensupply - ERC-20 Token Total Supply is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the total supply of an ERC-20 token given a contract address and EVM chain ID

## Facts

- Endpoint: POST https://stablecrypto.dev/api/etherscan/token/tokensupply
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokensupply-erc-20-token-total-supply-5e3642b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Kj-nnYqd9OnpMSexydOwV

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 tokensupply-erc-20-token-total-supply-5e3642b0 -d '<json body>'
```

Example prompt: What's the total supply of the USDC token (contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48) on Ethereum mainnet (chain ID 1)?

## When to prefer this

Use this endpoint when you need to look up the on-chain total supply of any ERC-20 token across EVM-compatible chains (Ethereum, Polygon, Base, etc.) via Etherscan data. Prefer this over generic RPC calls when you want a simple, direct total supply figure without manually crafting a JSON-RPC totalSupply call.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error or zero
- Unsupported chain ID returns an error
- Contract address not found on specified chain
- Network timeout or upstream Etherscan API unavailability
- Malformed contract address format causes a validation error

## How this service works

Pay-per-request access to CoinGecko, DefiLlama, Alchemy, and Etherscan APIs. No auth, no subscriptions.

## Output

The total token supply of the specified ERC-20 contract on the given EVM chain, expressed as a numeric value (typically in the token's smallest unit, e.g. wei-equivalent)

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chainid": {
   "type": "number",
   "description": "EVM chain ID (1=Ethereum, 137=Polygon, 8453=Base, etc.)"
  },
  "contractaddress": {
   "type": "string",
   "description": "ERC-20 token contract address"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokensupply-erc-20-token-total-supply-5e3642b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
