# Solana x402 API – DeFi Yields

> Solana x402 API – DeFi Yields is a paid API for AI agents from solana-x402-xi.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns DeFi yield opportunities across chains filtered by token, APY, risk level, and chain, paying per-call via x402 micropayment.

## Facts

- Endpoint: POST https://solana-x402-xi.vercel.app/api/v1/defi-yields?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-x402-api-defi-yields-77060f8d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bFzLkeWS9tP2lolpEljkx

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 solana-x402-api-defi-yields-77060f8d -d '<json body>'
```

Example prompt: Find me the top 10 DeFi yield opportunities for USDC on Base with at least 5% APY and low risk.

## When to prefer this

Choose this endpoint when you need real-time DeFi yield data filterable by chain, token, APY floor, and risk tolerance — especially useful for agents optimizing capital allocation or scanning for yield opportunities across Solana, Base, Ethereum, and Arbitrum with micropayment-based access.

## Known failure modes

- Invalid chain name returns empty results or 400 error
- minAPY higher than any available yield returns empty list
- limit out of range (>50 or <1) may return validation error
- maxRisk value not in allowed enum (low/medium/high) causes rejection
- Payment not completed via x402 returns 402 Payment Required

## How this service works

Blockchain data APIs with x402 payments on Solana + Base via PayAI facilitator. 7 endpoints covering bridge routing, whale alerts, DeFi yields, RPC, NFT, token, and transaction history.

## Output

A list of DeFi yield opportunities matching the filters, each including protocol name, chain, token, APY percentage, and risk level — up to the requested limit (max 50).

## 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": [
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Filter by chain (e.g. Ethereum, Base, Arbitrum, Solana)"
      },
      "limit": {
       "type": "number",
       "description": "Number of results (1-50)"
      },
      "token": {
       "type": "string",
       "description": "Filter by token symbol (e.g. USDC, ETH, BTC)"
      },
      "minAPY": {
       "type": "number",
       "description": "Minimum APY filter (e.g. 5 for 5%)"
      },
      "maxRisk": {
       "type": "string",
       "description": "Risk level: low, medium, high"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-x402-api-defi-yields-77060f8d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from solana-x402-xi.vercel.app](https://www.zero.xyz/host/solana-x402-xi.vercel.app/llms.txt)
