# ERC-20 Token Metadata Lookup

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

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

## Facts

- Endpoint: GET https://payai.agentstools.dev/token/meta?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-metadata-lookup-bc5d1fae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bdmHQzHUHTmqzgwQ_wWOG

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-bc5d1fae
```

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 verified, live on-chain ERC-20 token metadata (name, symbol, decimals, totalSupply) for a specific contract address. Prefer this over cached or off-chain token registries when accuracy and freshness matter, or when the token is obscure and not listed on standard token lists. Ideal for DeFi agents that need to validate a token contract before executing swaps or transfers.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error (contract may not implement name/symbol/decimals/totalSupply)
- Unsupported network value returns a validation error
- Contract address exists but is not an ERC-20 token (e.g. EOA or non-standard contract) causes a read failure
- Network RPC unavailable causes a timeout or service error
- 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 the token's name, symbol, number of decimals, and totalSupply in both raw on-chain units and human-readable (decimal-adjusted) form, read live from the contract state on the specified EVM network.

## 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-bc5d1fae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
