# ChainRay Yield Farming Analytics

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

Returns yield farming opportunities and APY data across DeFi protocols for a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/yield-farming
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-yield-farming-analytics-958da7d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_canUvHXEDhMqU6vKNMqLj

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-yield-farming-analytics-958da7d2
```

Example prompt: What are the best yield farming opportunities on Base right now — show me the top DeFi pools and their current APY rates.

## When to prefer this

Use this endpoint when you need on-chain yield farming data across a wide range of chains (46 supported) and want pay-per-request access without a subscription. Prefer this over generalist crypto data APIs when DeFi-specific analytics, multi-chain coverage, and verifiable on-chain proofs are required.

## Known failure modes

- Unsupported chain identifier returns an error or empty result
- Network-level downtime returns 5xx error
- Payment failure via x402 prevents data access
- Stale data if on-chain indexing lags behind latest blocks
- Missing or invalid chain query parameter may return default or error response

## 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

A list of yield farming opportunities on the specified chain, including protocol names, pool details, APY/APR rates, TVL, and other DeFi analytics relevant to liquidity provision and farming strategies.

## Example request

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

## 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-yield-farming-analytics-958da7d2/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)
