# ChainRay DeFi Scan

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

Scans and returns DeFi analytics and intelligence data for a specified blockchain network

## Facts

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

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-scan-17f2d8d5
```

Example prompt: Can you scan the DeFi landscape on Base right now and show me what protocols and metrics are active?

## When to prefer this

Use this endpoint when an AI agent needs DeFi-specific analytics for a particular blockchain network, such as protocol activity, liquidity data, or yield metrics. Prefer this over generic block explorers when the use case is specifically DeFi intelligence rather than raw transaction or token data. Best suited for agents making per-request, pay-as-you-go calls rather than requiring a subscription.

## Known failure modes

- Unsupported chain name returns an error or empty result
- Missing required chain parameter causes a 400 bad request
- Payment not processed via x402 returns a 402 Payment Required response
- Chain network temporarily unavailable causes a timeout or partial data response
- Invalid query parameter format returns a validation error

## 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 DeFi analytics and intelligence data for the specified blockchain, likely including protocol listings, liquidity figures, yield rates, TVL data, and other on-chain DeFi metrics relevant to the queried chain.

## 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-scan-17f2d8d5/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)
