# ERC-20 Total Supply Lookup

> ERC-20 Total Supply Lookup is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns the total supply of an ERC-20 token contract by calling totalSupply() on-chain for Ethereum mainnet

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_contract_abi_service/erc20_total_supply?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-total-supply-lookup-54bda89d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jeioRHzNnlcgoRFE2plcs

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-total-supply-lookup-54bda89d
```

Example prompt: What's the total supply of the USDC token contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?

## When to prefer this

Use this endpoint when you need the raw on-chain totalSupply of any ERC-20 token on Ethereum mainnet. It is a direct eth_call to the contract, so the data is authoritative and real-time. Prefer this over off-chain aggregators (CoinGecko, CoinMarketCap) when you need the exact on-chain figure rather than a reported or circulating supply approximation.

## Known failure modes

- Invalid or non-ERC-20 contract address returns ok:false with an error message
- Contract does not implement totalSupply() causes a revert or empty response
- Malformed address (not matching 0x + 40 hex) rejected by schema validation
- Network or RPC node unavailability causes timeout or error response
- Token contract that has been self-destructed returns zero or error

## How this service works

Returns the total supply of an ERC-20 token. Provide token (ERC-20 contract address). Query: token (ERC-20 contract, 0x + 40 hex).

## Output

Returns a JSON object with ok (boolean), result (the totalSupply as a uint256 decimal string), chain (e.g. 'ethereum'), method (the RPC method used), and service name. On failure, ok is false and an error string is present.

## 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": {
      "token": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "ERC-20 contract, 0x + 40 hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "service"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "chain": {
       "type": "string"
      },
      "error": {
       "type": "string",
       "description": "present when ok is false"
      },
      "method": {
       "type": "string"
      },
      "result": {
       "type": "string",
       "description": "the uint256 as a decimal string"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-total-supply-lookup-54bda89d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
