# DeFi Yield Opportunities by Chain

> DeFi Yield Opportunities by Chain is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns top DeFi yield opportunities filtered by chain and minimum TVL, including APY, pool, project, and stablecoin info sourced from DefiLlama

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/defi/yields
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-yield-opportunities-by-chain-67ebe518
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__KRxM48Sb2-4koIhcZIk5

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-yield-opportunities-by-chain-67ebe518
```

Example prompt: Show me the top 15 DeFi yield pools on Arbitrum with at least $2 million TVL — stablecoins only — sorted by APY.

## When to prefer this

Use this endpoint when an agent needs live, ranked DeFi yield data sourced from DefiLlama with chain-level filtering and TVL thresholds. Prefer over generic crypto APIs when the goal is specifically yield/APY discovery across DeFi protocols, especially when stablecoin pool filtering or TVL-based screening is needed.

## Known failure modes

- Invalid chain name returns empty results or error
- min_tvl too high may return zero pools
- top parameter exceeding 50 is capped or rejected
- DefiLlama upstream unavailability causes request failure
- Malformed query parameters return 400 error

## How this service works

Current top DeFi yield opportunities filtered by chain and minimum TVL. Returns pool, project, chain, APY (base + reward), TVL, and stablecoin flag, sorted by APY. Sourced live from DefiLlama with attribution. For agents scanning yield opportunities.

## Output

A JSON object containing a count and an array of pools, each with pool name, project, chain, base APY, reward APY, total APY, TVL in USD, and a stablecoin flag, plus a source attribution to DefiLlama. Results are sorted by APY descending.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "top": 15,
   "chain": "Arbitrum",
   "min_tvl": 2000000,
   "stablecoin_only": true
  }
 }
}
```

## 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": {
      "top": {
       "type": "number",
       "description": "Number of pools to return (max 50), default 10"
      },
      "chain": {
       "type": "string",
       "description": "Chain name e.g. Ethereum, Base, Arbitrum, Solana. Default Base"
      },
      "min_tvl": {
       "type": "number",
       "description": "Minimum pool TVL in USD, default 1000000"
      },
      "stablecoin_only": {
       "type": "boolean",
       "description": "Only stablecoin pools, default false"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "count": {
       "type": "number"
      },
      "pools": {
       "type": "array"
      },
      "source": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 10,
  "pools": [
   {
    "apy": 5.2,
    "pool": "aave-v3-usdc",
    "chain": "Base",
    "symbol": "USDC",
    "tvlUsd": 12000000,
    "project": "aave-v3",
    "stablecoin": true
   }
  ],
  "source": "DefiLlama"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-yield-opportunities-by-chain-67ebe518/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
