# ERC-20 Token Metadata Lookup

> ERC-20 Token Metadata Lookup is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns live on-chain metadata for an ERC-20 token (name, symbol, decimals, raw and human-readable totalSupply) from a contract address on Base, Ethereum, Arbitrum, Optimism, Polygon, or BNB Chain.

## Facts

- Endpoint: GET https://api.agentstools.dev/token/meta
- Price: $0.005/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-lookup-5fa7d3e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_83ot78UAuKpo_cWHT31Ky

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-lookup-5fa7d3e9
```

Example prompt: What's the name, symbol, decimals, and total supply of the ERC-20 token at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?

## When to prefer this

Use this endpoint when you need live, on-chain ERC-20 token metadata — name, symbol, decimals, and total supply — directly from contract state on Base, Ethereum, Arbitrum, Optimism, Polygon, or BNB Chain. Prefer this over off-chain token registries or price APIs when you need authoritative, real-time contract data rather than cached or aggregated information.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error or empty metadata
- Unsupported network name returns a validation error
- Contract address with no deployed code returns an error
- Network congestion or RPC issues may cause timeouts
- Missing required 'token' query parameter returns a 400-level error

## How this service works

ERC-20 token metadata on Base, Ethereum, Arbitrum, Optimism, Polygon or BNB (default Base): name, symbol, decimals and totalSupply (raw + human), read live from contract state by address.

## Output

Returns a JSON object with the token's name (e.g. 'USD Coin'), symbol (e.g. 'USDC'), decimals (e.g. 6), raw totalSupply (big integer string), and human-readable totalSupply (adjusted for decimals), all read live from the on-chain contract state.

## 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",
       "description": "ERC-20 contract address (0x..)"
      },
      "network": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon",
        "bnb"
       ],
       "type": "string",
       "description": "EVM network to read from (default base)"
      }
     }
    }
   },
   "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/erc-20-token-metadata-lookup-5fa7d3e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
