# ChainRay ETH Price

> ChainRay ETH Price is a paid API for AI agents from chainray.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Returns the current ETH spot price in USD on the Base network, with market cap, 24h volume, price change, and on-chain proof metadata.

## Facts

- Endpoint: GET https://chainray.online/price/ETH
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-online-3a8a2479
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_T9E2ikd8sD5LYPF7fJqF4

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 chainray-online-3a8a2479
```

Example prompt: What's the current ETH spot price on Base right now, including market cap, 24-hour volume, and price change? I want the on-chain verified price from ChainRay.

## When to prefer this

Use this endpoint when you need a real-time, on-chain verifiable ETH price from the Base network with cryptographic proof. Prefer it over generic price APIs when you need DeFi-native sourcing (Uniswap V3), confidence scoring, and block-level audit trail. Especially useful for agents operating in DeFi workflows where price integrity matters.

## Known failure modes

- Invalid token symbol returns error or empty result
- Unsupported chain parameter may fall back to Base default or return error
- Payment not provided or insufficient USDC results in 402 Payment Required
- Network or RPC outage may cause stale or unavailable price data
- Rate limiting if too many requests are made in rapid succession

## How this service works

Provides the current ETH spot price on the Base network via ChainRay's /price endpoint.

## Output

Returns a JSON object with ETH price in USD (e.g. $2350.11), market cap, 24h trading volume, 24h price change percentage, confidence level, data sources (Uniswap V3, DeFi Llama, CoinGecko), and a cryptographic on-chain proof including block hash, block number, and timestamp from the Base network.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "base",
   "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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network"
      },
      "token": {
       "type": "string",
       "description": "Token symbol or contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-online-3a8a2479/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
