Skip to content
Fourohtwo

DeFi data from DefiLlama in four modes

agentsvc.io/api/v1/proxy/defi-tvl

DeFi data from DefiLlama in four modes. protocol: TVL, 1d/7d change, category, market cap and chain breakdown of a protocol (slug or name, e.g. aave, uniswap, lido). top: largest protocols by TVL, optional category (e.g. Lending, Dexs, Liquid Staking) and chain filter. chains: chains ranked by TVL with share. dex_volume: 24h/7d/30d DEX volume and top DEXes, optionally for one chain.

BaseUnchecked
POSThttps://agentsvc.io/api/v1/proxy/defi-tvl

UptimeNot checked yet

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-tvl", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"mode":"protocol","protocol":"aave"}),
});
console.log(await res.json());

Example input

{
  "mode": "protocol",
  "protocol": "aave"
}