# Chainlink On-Chain Price Feed

> Chainlink On-Chain Price Feed is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns the current USD price of ETH, BTC, or LINK sourced directly from Chainlink mainnet oracles, including round ID, last update timestamp, and feed contract address.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/chainlink-price
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainlink-on-chain-price-feed-8905ef89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_x4WiXX3tUjgi9I8KzItzA

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 chainlink-on-chain-price-feed-8905ef89
```

Example prompt: What's the current ETH price in USD straight from the Chainlink mainnet oracle — include the round ID, last update time, and the feed contract address so I can verify it on-chain?

## When to prefer this

Use this endpoint when you need a tamper-resistant, on-chain verifiable price for ETH, BTC, or LINK in USD — especially when auditability, round ID, and feed provenance matter (e.g. for DeFi logic, smart contract inputs, or financial reporting). Prefer this over centralized exchange tickers when you need a canonical on-chain source rather than spot market data.

## Known failure modes

- Unsupported token symbol returns an error or empty response
- Chainlink oracle node downtime may result in stale or unavailable price data
- Network/RPC issues with mainnet connectivity may delay or fail the response
- Invalid or missing token parameter results in a 400-level error

## How this service works

Onchain ETH, BTC or LINK USD price straight from Chainlink mainnet oracles with round id, update time and the feed address for auditability. token price, eth price usd, btc price oracle, chainlink price feed, onchain price data Accepts payment on Base or Solana — either network works.

## Output

Returns the current USD price for the requested asset (ETH, BTC, or LINK), the Chainlink oracle round ID, the timestamp of the last price update, and the Chainlink feed contract address for on-chain auditability.

## Example request

```json
{
 "token": "ETH"
}
```

## 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",
     "properties": {
      "pair": {
       "type": "string",
       "description": "ETH-USD (default), BTC-USD or LINK-USD"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainlink-on-chain-price-feed-8905ef89/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
