# ChainRay Stream Price

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

Streams or fetches the current spot price for a token or asset on a specified blockchain network

## Facts

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

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-stream-price-f7bc26b5
```

Example prompt: What's the current spot price of ETH on the Base network right now?

## When to prefer this

Use this endpoint when you need real-time or near-real-time on-chain price data for a token on a specific blockchain network, especially Base, Ethereum, or Polygon. Prefer over general crypto price APIs when you need on-chain sourced prices rather than exchange-aggregated prices, or when operating in a web3/DeFi context where chain-specific pricing matters.

## Known failure modes

- Unknown or unsupported token identifier returns 404 or error
- Unsupported chain parameter returns an error or empty result
- Network connectivity issues to the specified blockchain may cause delays or failures
- Payment of 0.02 USDC not received results in 402 Payment Required
- Invalid path parameter format returns 400 Bad Request

## How this service works

ChainRay /stream/price

## Output

Returns the current spot price of the specified token or asset on the requested blockchain network, likely as a numeric price value with currency denomination and possibly timestamp 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",
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network (e.g., base, ethereum, polygon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-stream-price-f7bc26b5/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)
