agentsvc.io/api/v1/proxy/defi-yields
Find DeFi yield pools across 400+ protocols and 100+ chains (DefiLlama data): APY split into base and reward, 30-day mean APY, 7-day APY change, TVL, stablecoin flag, impermanent-loss risk. Filter by chain (e.g. 'Base', 'Ethereum'), project (e.g. 'aave'), token symbol (e.g. 'USDC'), stablecoin_only, min_tvl_usd (default 1,000,000); sort by 'apy' (default) or 'tvl'. Outliers (flagged by DefiLlama o
POST
https://agentsvc.io/api/v1/proxy/defi-yieldsUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agentsvc.io/api/v1/proxy/defi-yields", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"chain":"Base","limit":5,"stablecoin_only":true,"symbol":"USDC"}),
});
console.log(await res.json());Example input
{
"chain": "Base",
"limit": 5,
"stablecoin_only": true,
"symbol": "USDC"
}