# ChainRay DeFi Opportunity Scanner

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

Returns current DeFi opportunities (yield, pools, arbitrage, etc.) for a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/defi-opportunity
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-defi-opportunity-scanner-d02ea55c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2iK_Ea5us1OH3mQ_WvRec

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-opportunity-scanner-d02ea55c
```

Example prompt: What are the current DeFi opportunities on Base right now — any good yield pools or arbitrage plays I should know about?

## When to prefer this

Use this endpoint when an agent needs to surface actionable DeFi yield or investment opportunities on a specific blockchain. Prefer over generic blockchain explorers when the goal is finding DeFi opportunities rather than raw transaction data. Best when the user wants curated, intelligence-layer insights rather than raw chain state.

## Known failure modes

- Unsupported chain identifier returns error or empty results
- Rate limiting if called without valid x402 payment
- No opportunities found for low-activity chains
- Stale data if on-chain conditions change rapidly between calls
- Payment failure via x402 results in 402 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 current DeFi opportunities on the specified chain, likely including yield rates, pool details, protocol names, and opportunity scores or rankings. May include APY data, liquidity depth, risk indicators, and links to relevant protocols.

## 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-opportunity-scanner-d02ea55c/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)
