# ChainRay DeFi Yields

> ChainRay DeFi Yields 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 current DeFi yield opportunities (APYs, pools, protocols) for a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/defi-yields
- 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-online-7aa22084
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0zCDwtAdJBeZEoS88TmO2

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

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

## When to prefer this

Use this endpoint when you need a real-time snapshot of DeFi yield rates across protocols on a specific blockchain (especially Base, Ethereum, or Polygon). Prefer this over general market data endpoints when the user specifically wants to know where to earn yield or compare APYs across DeFi protocols on a given chain.

## Known failure modes

- Invalid or unsupported chain name returns an error or empty result
- Chain parameter omitted may default to a specific network or return an error
- Network-specific data unavailable if the chain has no indexed yield data
- Payment failure (402) if USDC payment is not properly attached
- Rate limiting if too many requests are made in quick succession

## 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 DeFi yield opportunities on the requested chain, including protocol names, pool identifiers, current APY/APR rates, and relevant metadata for each yield source.

## 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-online-7aa22084/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)
