DeFi TVL

Total value locked in a DeFi protocol or a whole chain, from DefiLlama.

$0.0100 per call POST /v1/tools/defi-tvl

Call it

The first response is 402 with the exact price and every rail you can pay with. Pay, repeat the request with the proof, and you get the result.

curl -X POST https://api.glianalabs.com/v1/tools/defi-tvl \
  -H 'content-type: application/json' \
  -d '{"protocol":"aave"}'

When to use it

Use when an agent sizes a protocol before interacting with it, tracks where capital is moving, or wants the state of the market before drilling into anything. Inputs: all optional — protocol (a DefiLlama slug like aave, uniswap, lido), chain (e.g. Ethereum, Base), limit (1-50). With protocol: returns tvl_usd, 1d and 7d change, market cap and the per-chain split. With chain: that chain's TVL and its rank. With neither: the largest chains by TVL plus the total. Borrowed and staking rows are excluded so the number is TVL and not double-counted.

What it costs

$0.0100 per successful call — flat, with no plan, minimum or monthly fee. A call that fails validation is refused before it runs, so it is never charged.

Not sure this is the right endpoint? GET /v1/consult?intent=… is free and answers that.