# ScrapeMole Onchain Token Info

> ScrapeMole Onchain Token Info is a paid API for AI agents from onchain.scrapemole.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Fetches on-chain ERC-20 token metadata and current USD price for a given contract address on Base or Ethereum

## Facts

- Endpoint: GET https://onchain.scrapemole.workers.dev/v1/token?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapemole-onchain-token-info-79cc471a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ieiHsaVnEGc-i2w1Oisb6

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 scrapemole-onchain-token-info-79cc471a
```

Example prompt: What token is deployed at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base — give me its name, symbol, decimals, total supply, and current USD price.

## When to prefer this

Choose this endpoint when you need authoritative on-chain ERC-20 token metadata (name, symbol, decimals, total supply) plus a live USD price read directly from chain state on Base or Ethereum. Prefer it over centralized token APIs when you need trustless, real-time data without relying on a third-party database that may be stale or incomplete for long-tail tokens. The pay-per-call x402 model means no subscription required for occasional lookups.

## Known failure modes

- Invalid or non-contract address returns an error (call not charged)
- Address is a wallet, not a contract — isContract will be false and token fields may be absent
- Token has no Chainlink price feed — priceUsd may be null or absent
- Wrong chain specified — token exists on Ethereum but Base was queried, returning no data
- Payment failure via x402 — call rejected before execution, no charge

## How this service works

Pay-per-call on-chain data for agents on Base and Ethereum, read directly from chain state: Chainlink USD prices (crypto, stablecoins, FX, metals; 10 per call), ERC-20 token info, wallet balances with USD values, transaction lookup with decoded ERC-20 transfers, ENS and Basename resolution (forward and reverse), gas and fee estimates in USD, and Uniswap v3 DEX prices for long-tail tokens (verify a payment arrived). USDC via x402; failed calls are never charged.

Payments: x402 v2, scheme "exact", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://onchain.scrapemole.workers.dev/terms

## Output

A JSON object containing the token's name, symbol, decimals, total supply (raw and formatted), current USD price, contract code size in bytes, whether the address is a contract, and a block explorer URL for the token.

## 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": [
      "address"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base",
       "description": "Chain."
      },
      "address": {
       "type": "string",
       "examples": [
        "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
       ],
       "description": "Token contract address (0x…)."
      }
     },
     "additionalProperties": false
    }
   },
   "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",
  "chain": "base",
  "symbol": "USDC",
  "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "decimals": 6,
  "explorer": "https://basescan.org/token/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "priceUsd": 0.9999,
  "isContract": true,
  "totalSupply": "4123456789012345",
  "codeSizeBytes": 1852,
  "totalSupplyFormatted": "4123456789.012345"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-onchain-token-info-79cc471a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain.scrapemole.workers.dev](https://www.zero.xyz/host/onchain.scrapemole.workers.dev/llms.txt)
