# 2s.io Crypto Token Metadata

> 2s.io Crypto Token Metadata is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-15).

Fetches live on-chain metadata for an ERC-20 or ERC-721 token contract across Base, Ethereum, Polygon, Arbitrum, and Optimism — returning name, symbol, decimals, detected standard, and total supply.

## Facts

- Endpoint: GET https://2s.io/api/crypto/token-metadata
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-crypto-token-metadata-3cf24410
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xMgvQn8su0nn-xADGuACn

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 2s-io-crypto-token-metadata-3cf24410
```

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

## When to prefer this

Use this endpoint when you need authoritative, live on-chain token metadata (name, symbol, decimals, total supply, token standard) directly from the contract — not from a centralized index that may be stale. Ideal for verifying token details before a swap, enriching a portfolio view, or confirming ERC standard. Complements price endpoints (which give market data) and ABI/source endpoints (which give contract code).

## Known failure modes

- Invalid or non-existent contract address returns an error or empty metadata
- Contract address exists but is not an ERC-20 or ERC-721 (e.g. proxy, multisig) — standard may be undetectable
- Unsupported chain value returns validation error
- Network congestion or RPC issues may cause delayed or failed on-chain reads
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Live on-chain token metadata for an ERC-20 or ERC-721 contract (Base, Ethereum, Polygon, Arbitrum, Optimism; keyless). Returns name, symbol, decimals, detected standard, and total supply (raw + formatted). The authoritative read straight from the contract — complements crypto.token-price and crypto.contract (ABI/source).

## Output

Returns the token's on-chain name, symbol, number of decimals, detected token standard (ERC-20 or ERC-721), and total supply in both raw integer form and human-readable formatted form — read directly from the contract.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "polygon",
        "arbitrum",
        "optimism"
       ],
       "type": "string",
       "description": "Default base."
      },
      "address": {
       "type": "string",
       "description": "Token contract address."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-crypto-token-metadata-3cf24410/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
