{"uid":"cap_BDKuMlJwelp7DCN4SbVpv","slug":"chainray-yield-optimizer-be38de74","name":"ChainRay Yield Optimizer","description":"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.","url":"https://chainray.online/yield-optimizer","method":"GET","headers":{},"bodySchema":{"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":{"minTvl":{"type":"string","description":"Minimum TVL filter in USD (default: 1000000)"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"minTvl":"1000000"}}},"response":{"_proof":{"chain":"base","dataHash":"ede237f4981e7b79c37456207399ddc1e59fc7725a49271371596a181cd70c95","blockHash":"0x3872e125ae82cb393994df4d5b39d663986172b8589f13815469952412a3c72e","chainName":"Base","blockNumber":47486850,"proofVersion":"3.0","blockTimestamp":1781763047,"proofTimestamp":1781763048722},"source":"DeFi Llama pools + on-chain gas data","summary":{"topApy":"N/A","strategy":"No opportunities found","chainsScanned":7,"poolsAnalyzed":0},"timestamp":1781763048462,"topOpportunities":[],"bestStablecoinYield":null}},"exampleRequest":{"minTvl":"1000000"},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5GnC7slfuKlPvReK-0UOV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns top DeFi yield opportunities across chains, filterable by minimum TVL, to help agents identify the best current yield-bearing positions.","exampleAgentPrompt":"Show me the best DeFi yield opportunities right now, filtered to only pools with at least $5 million TVL so I know they're reasonably liquid.","exampleUseCases":null,"resultDescription":"A ranked list of DeFi yield opportunities across supported chains, each entry including protocol name, pool/vault address, chain, current APY, and TVL in USD — filtered by the minTvl threshold if provided.","failureModes":["No pools found meeting the minTvl threshold — try lowering the minimum TVL","Payment required (402) if x402 USDC payment header is missing or insufficient","Invalid minTvl value (non-numeric string) causing a 400 error","Upstream data unavailability causing partial or empty results"],"whenToPreferThis":"Use this endpoint when an agent needs to discover current DeFi yield opportunities and rank them by return, especially when you want to filter by liquidity depth (TVL). Prefer over generic DeFi aggregators when you need structured, agent-ready JSON with multi-chain coverage and verifiable data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:55:34.736Z","isFirstParty":false}