# ERC-20 Token Total Supply Lookup (x402)

> ERC-20 Token Total Supply Lookup (x402) is a paid API for AI agents from x402-stock-indicators.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-11).

Returns the raw total supply of any ERC-20 token on Ethereum given its contract address, paid per-call via USDC over the x402 protocol.

## Facts

- Endpoint: GET https://x402-stock-indicators.vercel.app/token-supply/%7Bcontract_address%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-total-supply-lookup-x402-983f66e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xR21-yzUnrvJq_Dr_SlG6

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 erc-20-token-total-supply-lookup-x402-983f66e7
```

Example prompt: What's the total supply of the token at Ethereum contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? Pay the $0.005 USDC fee via x402 and give me the raw supply figure.

## When to prefer this

Choose this endpoint when you need on-chain ERC-20 total supply data with no API key or subscription setup, and you can pay $0.005 USDC per call via x402 (Base or Solana). Ideal for agents that need occasional or sporadic supply lookups without committing to a data provider contract. Prefer alternatives like Alchemy, Moralis, or The Graph if you need decimals in the same response, multi-chain support beyond Ethereum, or very high call volumes where per-call pricing becomes costly.

## Known failure modes

- Invalid or malformed contract address returns an error or empty result
- Contract address exists but is not an ERC-20 token may return unexpected data
- Payment failure via x402 (insufficient USDC balance or unsupported wallet) blocks the request
- Rate limiting or Vercel cold-start latency may cause timeouts
- Token deployed on non-Ethereum chains will not be found (endpoint appears Ethereum-specific)
- Decimals not returned — callers who forget to divide by 10**decimals will misread the supply

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

A JSON object containing: the blockchain chain identifier (e.g. 'eth'), the token's contract address, the raw total supply expressed in the token's smallest unit (e.g. wei for 18-decimal tokens), and a note reminding the caller to divide by 10**decimals for a human-readable amount since decimals are not included in this response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "raw_total_supply is in the token's smallest unit -- this endpoint doesn't return the token's decimals, so divide by 10**decimals yourself for a human-readable amount (most ERC-20s use 18, but not all).",
  "chain": "eth",
  "token_contract": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "raw_total_supply": "49571331689759662"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-token-total-supply-lookup-x402-983f66e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-stock-indicators.vercel.app](https://www.zero.xyz/host/x402-stock-indicators.vercel.app/llms.txt)
