# DeFi Yields by Chain (DefiLlama)

> DeFi Yields by Chain (DefiLlama) is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns the best DeFi yield opportunities (APY) on a specified blockchain, ranked highest first, sourced from DefiLlama.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/defi/yields/by-chain
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-yields-by-chain-defillama-b384104b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SX4rpAgPo1W6-efWIANRp

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 defi-yields-by-chain-defillama-b384104b
```

Example prompt: What are the top 10 DeFi yield opportunities on Base right now — show me the highest APY pools across all protocols?

## When to prefer this

Use this endpoint when you need chain-specific DeFi yield rankings and want results filtered to a single blockchain. Prefer this over the global yields endpoint when the user has already specified a chain (Base, Ethereum, Arbitrum, etc.) and wants the best opportunities within that ecosystem. Ideal for agents helping users decide where to deploy capital on a particular network.

## Known failure modes

- Invalid or unrecognized chain slug returns an error or empty results
- Chain slug misspelled (e.g. 'eth' instead of 'ethereum') may yield no results
- Limit parameter outside 1-100 range may be rejected or clamped
- DefiLlama upstream data unavailable causes service error
- Very new or obscure chains may have sparse or no yield data

## How this service works

Best DeFi yields (APY) on a given blockchain, across all protocols and tokens, highest first, source DefiLlama — for an agent asking 'where's the best yield on Base/Ethereum/Arbitrum/...?'. Parameter: ?chain=<slug> (e.g. base, required). Optional: ?limit=<n> (1-100, default 10).

## Output

A ranked list of DeFi pools/opportunities on the specified chain, ordered by APY descending. Each result typically includes pool name, protocol, token(s), APY percentage, and pool metadata sourced from DefiLlama.

## 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",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "DefiLlama chain slug/name (e.g. base, ethereum, arbitrum)."
      },
      "limit": {
       "type": "integer",
       "description": "Number of pools to return (1-100, default 10)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yields-by-chain-defillama-b384104b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
