# ERC-20 Token Metadata & Total Supply Lookup

> ERC-20 Token Metadata & Total Supply Lookup is a paid API for AI agents from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns name, symbol, decimals, and total supply for any ERC-20 token contract, read live on-chain from a specified EVM network.

## Facts

- Endpoint: POST https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/token-meta
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-metadata-total-supply-lookup-0c6032c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F1MUji2r1ab3RjYzD7840

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-metadata-total-supply-lookup-0c6032c2 -d '<json body>'
```

Example prompt: Can you pull the on-chain metadata for the USDC contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum — I need the token name, symbol, decimals, and total supply?

## When to prefer this

Use this endpoint when you need authoritative, live on-chain ERC-20 token metadata (name, symbol, decimals, supply) directly from the blockchain rather than from a cached or aggregated data source. Prefer it over CoinGecko-style endpoints when you need the raw contract-level truth, or when the token is too new or niche to appear in market data APIs. Also ideal when you need the exact totalSupplyRaw for smart contract interactions.

## Known failure modes

- Invalid or non-ERC-20 contract address returns null fields or an error
- Unsupported chain name causes a validation error
- Contract address that exists but is not an ERC-20 token may return partial or null metadata
- Network RPC issues may cause transient failures or timeouts
- Malformed contract address pattern (not matching 0x + 40 hex chars) rejected by schema validation

## Output

Returns a JSON object containing the token's name, symbol, decimals, raw total supply (as a big integer string), and decimal-adjusted total supply, along with the chain and contract address echoed back for confirmation.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "contract"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "default": "ethereum",
       "description": "EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc)."
      },
      "contract": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "ERC-20 token contract address."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "machine",
      "route",
      "token"
     ],
     "properties": {
      "chain": {
       "type": "string"
      },
      "route": {
       "type": "string"
      },
      "token": {
       "type": "object",
       "properties": {
        "name": {
         "type": [
          "string",
          "null"
         ]
        },
        "chain": {
         "type": [
          "string",
          "null"
         ]
        },
        "symbol": {
         "type": [
          "string",
          "null"
         ]
        },
        "contract": {
         "type": [
          "string",
          "null"
         ]
        },
        "decimals": {
         "type": [
          "integer",
          "null"
         ]
        },
        "totalSupply": {
         "type": [
          "string",
          "null"
         ]
        },
        "totalSupplyRaw": {
         "type": [
          "string",
          "null"
         ]
        }
       }
      },
      "machine": {
       "type": "string"
      },
      "contract": {
       "type": "string"
      },
      "economics": {
       "type": "object",
       "properties": {
        "sellPriceUsd": {
         "type": "number"
        },
        "upstreamCostUsdActual": {
         "type": [
          "number",
          "null"
         ]
        }
       }
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-token-metadata-total-supply-lookup-0c6032c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com](https://www.zero.xyz/host/agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/llms.txt)
