# ChainRay Token Price Lookup

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

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

## Facts

- Endpoint: GET https://chainray.online/price/%7Btoken%7D
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-token-price-lookup-20289bae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_91LnFKIr5brOhsv7V9pnN

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-token-price-lookup-20289bae
```

Example prompt: What's the current price of ETH on Ethereum mainnet? Use ChainRay to pull the live on-chain price.

## When to prefer this

Use this endpoint when you need a real-time, on-chain token price for a specific token symbol or contract address on a particular blockchain. Prefer this over off-chain price APIs when verifiability and on-chain accuracy matter, or when querying tokens on less common chains among the 46 supported.

## Known failure modes

- Token symbol not recognized or unsupported — returns 404 or error object
- Chain parameter specifies an unsupported blockchain — returns error
- Contract address is invalid or malformed — returns validation error
- Token exists but has no price feed available — returns null or empty response
- Payment not completed (x402) — returns 402 Payment Required

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

Returns the current price of the requested token on the specified blockchain network, sourced from on-chain data.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum",
   "token": "USDC"
  }
 }
}
```

## 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-token-price-lookup-20289bae/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)
