# ERC-20 Token Metadata Lookup (Base Chain)

> ERC-20 Token Metadata Lookup (Base Chain) is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-20).

Returns name, symbol, decimals, and total supply (raw and formatted) for any ERC-20 token contract on the Base blockchain.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/chain/erc20-meta?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/erc-20-token-metadata-lookup-base-chain-2aa8f8a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oTNbOvTJgjq-iPEKVJGGi

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-base-chain-2aa8f8a2
```

Example prompt: What's the name, symbol, decimals, and total supply of the ERC-20 token at contract address 0x833589fCd6eDb6E08f4c7C32D4f71b54bdA02913 on Base?

## When to prefer this

Use this endpoint when an agent needs on-chain ERC-20 metadata — name, symbol, decimals, or total supply — for a Base chain token without setting up a full RPC node or blockchain SDK. It is especially useful in pre-trade checks, token display UIs, or enrichment pipelines where basic token facts are needed cheaply ($0.01 USDC per call) with no API key required. Prefer this over full blockchain RPC calls when only metadata is needed and low operational overhead is a priority.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error or empty response
- Address not deployed on Base (e.g. Ethereum mainnet address) returns no data
- Malformed 0x address format causes a bad request error
- Payment failure (insufficient USDC or x402 handshake failure) blocks the request
- Rate limiting or worker timeout for heavily loaded contracts

## How this service works

ERC-20 metadata on Base: name, symbol, decimals, totalSupply (raw + formatted) for any token contract.

## Output

A JSON object containing the token's contract address, human-readable name, ticker symbol, decimal precision, raw total supply (as a string to preserve precision), formatted total supply (as a number), and the chain identifier ('base').

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "token": {
       "type": "string",
       "description": "0x-prefixed ERC-20 contract address on Base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "token",
      "name",
      "symbol",
      "decimals",
      "total_supply_raw",
      "total_supply",
      "chain"
     ],
     "properties": {
      "name": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "token": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "decimals": {
       "type": "integer"
      },
      "total_supply": {
       "type": "integer"
      },
      "total_supply_raw": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "USD Coin",
  "chain": "base",
  "token": "0x833589fCd6eDb6E08f4c7C32D4f71b54bdA02913",
  "symbol": "USDC",
  "decimals": 6,
  "total_supply": 3500000000,
  "total_supply_raw": "3500000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/erc-20-token-metadata-lookup-base-chain-2aa8f8a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
