# ScrapeMole Onchain: Chainlink USD Prices (Base & Ethereum)

> ScrapeMole Onchain: Chainlink USD Prices (Base & Ethereum) is a paid API for AI agents from onchain.scrapemole.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Returns real-time Chainlink oracle USD prices for up to 10 crypto, stablecoin, FX, or metals symbols from Base or Ethereum chain state

## Facts

- Endpoint: GET https://onchain.scrapemole.workers.dev/v1/price?utm_source=zero.xyz
- Price: $0.002/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-chainlink-usd-prices-base-ethereum-afffb3f4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ZzirRaqyWFUH3FX46YA3

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-chainlink-usd-prices-base-ethereum-afffb3f4
```

Example prompt: What are the current on-chain USD prices for ETH and BTC right now? Use Chainlink feeds on Base.

## When to prefer this

Choose this endpoint when you need authoritative, tamper-resistant USD prices sourced directly from Chainlink oracle contracts on Base or Ethereum — not from a centralized exchange API. It is ideal for DeFi agents that need on-chain verified prices for crypto, stablecoins, FX pairs, or metals, especially when you need to batch up to 10 prices in a single cheap ($0.002 USDC) call. Prefer it over CEX price APIs when trustless, chain-native data is required, and over Uniswap DEX prices when assets are mainstream and Chainlink feeds exist for them.

## Known failure modes

- Unsupported symbol requested — symbol appears in 'unsupported' array
- More than 10 symbols requested — request rejected
- Invalid chain value — must be 'base' or 'ethereum'
- Chainlink feed temporarily unavailable — stale flag set to true
- Payment failure via x402 — call not charged, no data returned
- Network/RPC error reading chain state — 5xx response

## 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

Returns a JSON object containing the chain name, count of results, and an array of price records — each with the symbol, USD price, Chainlink feed address, round ID, last updated timestamp, age in seconds, staleness flag, and asset class (Crypto, Stablecoin, FX, Metals). Any unrecognized symbols are listed in an 'unsupported' array.

## 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": [
      "symbols"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base",
       "description": "Chain to read the feeds from."
      },
      "symbols": {
       "type": "string",
       "examples": [
        "ETH,BTC"
       ],
       "description": "Comma-separated asset symbols (max 10), e.g. \"ETH,BTC,USDC,EUR\". GET / lists all supported symbols per chain."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "count": 2,
  "prices": [
   {
    "feed": "0x…",
    "stale": false,
    "symbol": "ETH",
    "roundId": "18446744073709600000",
    "priceUsd": 3912.45,
    "updatedAt": "2026-10-11T18:59:11.000Z",
    "ageSeconds": 240,
    "assetClass": "Crypto"
   }
  ],
  "unsupported": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-onchain-chainlink-usd-prices-base-ethereum-afffb3f4/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)
