# ChainRay Intent Routing — On-Chain Intelligence

> ChainRay Intent Routing — On-Chain Intelligence is a paid API for AI agents from chainray.online, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Routes natural language or structured intent queries to blockchain data across 46 chains, returning on-chain intelligence such as gas fees, DeFi analytics, and verifiable proofs.

## Facts

- Endpoint: GET https://chainray.online/intent
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-intent-routing-on-chain-intelligence-c160d951
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BuELbKa8jMQNYhMbVsraw

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-intent-routing-on-chain-intelligence-c160d951
```

Example prompt: What are the current gas fees on Base right now, and can you pull any DeFi analytics available for that chain?

## When to prefer this

Choose this endpoint when you need a single flexible entry point to route diverse blockchain intelligence queries across many chains without knowing the exact sub-endpoint in advance. Prefer it when your query is intent-driven or exploratory, or when you need cross-chain coverage (46 chains) and don't want to hardcode chain-specific endpoints. Especially useful for AI agents that need to dynamically resolve blockchain queries at runtime.

## Known failure modes

- Unsupported chain parameter returns an error or empty result
- Missing required 'input' object causes schema validation failure
- Malformed or ambiguous intent cannot be routed to a specific endpoint
- Payment not received or x402 handshake fails, blocking the response
- Rate limiting or network timeout on real-time stream endpoints

## 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 on-chain intelligence data for the specified blockchain, which may include gas fees, DeFi protocol analytics, transaction data, or verifiable proofs depending on the routed intent, sourced from one of 93 endpoints across 46 supported chains.

## 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": {
      "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-intent-routing-on-chain-intelligence-c160d951/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)
