# BaseLens Token Info

> BaseLens Token Info is a paid API for AI agents from baselens-api.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-04).

Fetches ERC-20 token metadata on Base including name, symbol, decimals, total supply, and proxy implementation details for a given contract address.

## Facts

- Endpoint: GET https://baselens-api.vercel.app/v1/token?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baselens-token-info-368a0ae3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cDq68m2MUPO8QGGYwWHV-

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 baselens-token-info-368a0ae3
```

Example prompt: Can you look up the on-chain token metadata for the contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — I need the name, symbol, decimals, total supply, and whether it's a proxy contract?

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call ERC-20 token metadata lookups on the Base network without managing API keys or subscriptions. It is ideal for AI agents needing on-demand token info (name, symbol, decimals, supply, proxy details) at low cost ($0.003 USDC) via x402 micropayments. Prefer it over full blockchain node queries or heavier indexing APIs when you only need token metadata and want frictionless access.

## Known failure modes

- Invalid or non-ERC-20 contract address returns an error or empty result
- Contract address not deployed on Base returns a 404 or error response
- Malformed address string causes a validation error
- Payment failure via x402 protocol results in a 402 response blocking data access
- Rate limiting or network issues on Vercel hosting cause intermittent failures

## How this service works

Base address, ERC-20 balance, token price, recent transfers, Basename/ENS resolve, contract verification, tx summaries and gas over x402 and MCP. $0.001–$0.004 USDC per call, no API key.

## Output

A JSON object containing the token's name, symbol, decimals, total supply (as a string), the contract address, any notable notes (e.g. upgradeable proxy warnings), and the proxy implementation address if applicable.

## 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",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Token contract on Base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "USD Coin",
  "notes": [
   "Upgradeable proxy…"
  ],
  "token": "0x8335…2913",
  "symbol": "USDC",
  "decimals": 6,
  "totalSupply": "4000000000",
  "proxyImplementation": "0x…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baselens-token-info-368a0ae3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baselens-api.vercel.app](https://www.zero.xyz/host/baselens-api.vercel.app/llms.txt)
