# ChainRay DeFi Compare

> ChainRay DeFi Compare 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).

Compares DeFi protocols and analytics across blockchain networks to surface rates, liquidity, and yield data side-by-side

## Facts

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

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-defi-compare-ef276de1
```

Example prompt: Can you compare the top DeFi protocols on Base for me — things like yields, liquidity, and key metrics — so I can figure out where to put my funds?

## When to prefer this

Use this endpoint when an agent needs to compare multiple DeFi protocols on a specific chain simultaneously rather than querying each protocol individually. Ideal for yield optimization, liquidity analysis, or helping users decide where to allocate assets on-chain.

## Known failure modes

- Unsupported chain name returns an error or empty result
- Network congestion may cause stale data
- Missing required 'chain' query param may return default chain or error
- Endpoint may return limited data for newer or less-liquid chains

## 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 structured comparison of DeFi protocols on the specified blockchain network, including metrics like APY/yield rates, liquidity depths, and protocol-level analytics for side-by-side evaluation

## 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-defi-compare-ef276de1/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)
