# Financial Data x402 — ERC-20 Token Total Supply

> Financial Data x402 — ERC-20 Token Total Supply is a paid API for AI agents from x402financialdata.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns the raw total supply of an ERC-20 token on Ethereum (or other supported chains) given its contract address, paid per-call via x402/USDC with no API key required.

## Facts

- Endpoint: GET https://x402financialdata.com/token-supply/%7Bcontract_address%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-data-x402-erc-20-token-total-supply-1e0db6fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5zxhiJ5fhcUy7Nvavd4B0

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 financial-data-x402-erc-20-token-total-supply-1e0db6fe
```

Example prompt: What is the total on-chain supply of USDC right now? The contract address is 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum.

## When to prefer this

Choose this endpoint when you need raw on-chain total supply for an ERC-20 token and want zero-friction, no-subscription access paid per-call in USDC via the x402 protocol. It is ideal for agents that make sporadic, ad-hoc queries where a monthly API subscription would be wasteful. It is not appropriate if you also need the token's decimal precision (you must fetch that separately), or if you need off-chain circulating supply figures that exclude locked/burned tokens.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty supply
- Contract address on unsupported chain returns an error
- Payment failure or insufficient USDC balance causes x402 payment rejection
- Malformed contract address (wrong length/checksum) may cause a 400 or lookup failure
- No decimals field returned — caller must independently know the token's decimals to normalize the value

## 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_contract address queried, the raw_total_supply as an integer string in the token's smallest unit (e.g. wei for 18-decimal tokens), and a note reminding callers to divide by 10^decimals for a human-readable amount (decimals not included in the 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/financial-data-x402-erc-20-token-total-supply-1e0db6fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402financialdata.com](https://www.zero.xyz/host/x402financialdata.com/llms.txt)
