# Token Total Supply

> Token Total Supply is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns the total supply, name, symbol, and decimals of an ERC-20 or ERC-721 token contract by reading on-chain data.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/evm/total-supply?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-total-supply-8b0ddcd5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P-tBgCGElqC4PLRQv1n_4

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 token-total-supply-8b0ddcd5
```

Example prompt: What's the total supply, symbol, and decimals for the USDC contract on Ethereum? I need the on-chain data for market cap calculations.

## When to prefer this

Use this endpoint when you need authoritative, on-chain token metadata (supply, name, symbol, decimals) for ERC-20 or ERC-721 contracts on Ethereum, Base, Arbitrum, Optimism, or Polygon — especially for market cap calculations, supply verification, or token due diligence where accuracy from the chain itself is required rather than a cached off-chain source.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Unsupported chain name causes a validation error
- Token address that is not an ERC-20 or ERC-721 contract may return an error or zero values
- Network congestion or RPC issues may cause timeouts
- Payment of 0.002 USDC not provided results in HTTP 402 rejection

## How this service works

Total supply, name, symbol and decimals of an ERC-20 or ERC-721 contract, read on-chain. Use for market-cap math, supply checks and token due diligence.

## Output

Returns the token's total supply (as a big integer or formatted number), human-readable name, ticker symbol, and decimal precision as read directly from the smart contract on the specified EVM chain.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism or polygon"
      },
      "token": {
       "type": "string",
       "description": "Token address or USDC/USDT/DAI"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-total-supply-8b0ddcd5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
