# basefeed ERC-20 Token Metadata

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

Fetches on-chain ERC-20 token metadata (name, symbol, decimals, etc.) for one or more token addresses on Base or Base Sepolia, paid per call in USDC via x402.

## Facts

- Endpoint: GET https://api.basefeed.io/v1/meta/tokens
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basefeed-erc-20-token-metadata-2042f375
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QgiOZP6rMuqpMLjw1c4vo

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 basefeed-erc-20-token-metadata-2042f375
```

Example prompt: Can you look up the name, symbol, and decimals for these two Base token contracts: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and 0x4200000000000000000000000000000000000006?

## When to prefer this

Choose this endpoint when you need on-chain ERC-20 token metadata (name, symbol, decimals) for specific contract addresses on Base mainnet or Base Sepolia, without needing a signup or API key. It is ideal for lightweight, pay-per-call lookups — particularly useful for agents enriching wallet data, validating tokens, or labeling DeFi positions. Prefer it over general-purpose blockchain RPC calls when you want a simple REST interface rather than raw JSON-RPC, and over other metadata APIs when you want to pay only for what you use via USDC on Base.

## Known failure modes

- Invalid or malformed contract address returns error or empty token entry
- Address not corresponding to an ERC-20 token returns empty or null metadata
- Missing required 'addresses' query parameter returns validation error
- Payment failure via x402 (insufficient USDC balance) returns 402 Payment Required
- Unsupported chain value returns validation error
- Rate limiting or node downtime may return 5xx errors

## How this service works

Batch ERC-20 metadata (2-10 addresses)

## Output

A JSON object with ok (boolean), count (integer number of tokens returned), and a tokens array containing metadata for each queried address — typically including name, symbol, decimals, and contract address for each ERC-20 token on the specified chain.

## 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": [
      "addresses"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "base-sepolia"
       ],
       "type": "string",
       "default": "base"
      },
      "addresses": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "count": 2,
  "tokens": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basefeed-erc-20-token-metadata-2042f375/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.basefeed.io](https://www.zero.xyz/host/api.basefeed.io/llms.txt)
