# ChainRay /price

> ChainRay /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-15).

Fetches the current price of a specified token on a given blockchain network

## Facts

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

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-71659874
```

Example prompt: What's the current price of USDC on Base chain? Use ChainRay to look it up.

## When to prefer this

Use this endpoint when you need a quick, real-time price lookup for a specific token on a specific blockchain network, especially within the ChainRay ecosystem where sibling endpoints for gas, yields, and whale tracking are also available. Prefer this over generic market APIs when you need on-chain or DeFi-native token pricing tied to a specific chain.

## Known failure modes

- Token symbol or contract address not found on the specified chain — returns 404 or empty result
- Chain parameter not recognized or unsupported — returns error
- Missing required token query parameter — returns 400 bad request
- Payment not provided or insufficient — returns 402 Payment Required
- Network or upstream data source unavailable — returns 503

## How this service works

ChainRay /price

## Output

Returns the current price of the specified token (by symbol or contract address) on the requested blockchain network, likely including price value and relevant metadata.

## 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-71659874/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)
