# x402 Bazaar Rank – Token Contract Lookup

> x402 Bazaar Rank – Token Contract Lookup is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-18).

Resolves an EVM token contract address on Base to its on-chain metadata (name, symbol, decimals) via live eth_call reads.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/token
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-rank-token-contract-lookup-76ad3301
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5m6tY91m-h2V43fqsr7af

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 x402-bazaar-rank-token-contract-lookup-76ad3301
```

Example prompt: What token is at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base? Give me its name, symbol, and decimals from on-chain.

## When to prefer this

Use this endpoint when you need live, trustless on-chain token metadata from the Base network specifically, rather than relying on a curated token list that may be stale or incomplete. Ideal when you have a raw contract address and need to confirm it is a legitimate ERC-20 and retrieve its symbol/decimals for payment calculations or display purposes.

## Known failure modes

- Contract address not found or not deployed on Base — returns empty or error response
- Address is not an ERC-20 token contract — name()/symbol()/decimals() calls may fail or return empty
- Invalid address format (non-hex, wrong length) — likely returns a 400 or schema validation error
- Network congestion on Base causing read latency or timeout
- Payment not included or invalid — 402 response blocking access

## How this service works

Ranked discovery over the live x402 service market: every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision.

## Output

Returns a JSON object with the token's on-chain name, symbol, and decimals; boolean checks for whether the contract responds to name() and version() calls; the network identifier (eip155:8453 for Base); the queried contract address; the read method used (eth_call); a disclaimer about endorsement; and a generatedAt timestamp.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "a": {
       "type": "string",
       "description": "Base token contract address (0x...); omit for a worked example on USDC"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "contract",
  "note": "read live from the chain, not from a list",
  "query": "0x833589fCD6eDb...",
  "token": {
   "name": "USD Coin",
   "symbol": "USDC",
   "decimals": 6
  },
  "checks": {
   "respondsToName": true,
   "respondsToVersion": true
  },
  "method": "eth_call against name(), version(), symbol(), decimals()",
  "network": "eip155:8453",
  "contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "disclaimer": "presence of a contract is not an endorsement of the token",
  "generatedAt": "2026-09-17T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-rank-token-contract-lookup-76ad3301/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
