AgentAPIGate
Back to Catalog
GET /v1/crypto/defillama/chains_tvlPack: finance·MCP Tool: crypto_defillama_chains_tvl

DefiLlama Blockchain TVL Leaderboard

Retrieve Total Value Locked (TVL) ranked across Layer-1 and Layer-2 blockchains from DefiLlama with token symbols and chain IDs.

API Key Price:$0.0005 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Optional chain name or symbol filter (e.g. "Ethereum", "Solana", "Base")
Max chains returned (1-50)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/crypto/defillama/chains_tvl" \
  --data-urlencode "limit=20" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-81% tokens
# DefiLlama Blockchain TVL Leaderboard (`crypto.defillama.chains_tvl`)
**total_chains**: 286 · **count**: 20

## chains
- [1] name: Ethereum, token_symbol: ETH, tvl_usd: 36252300988, gecko_id: ethereum, chain_id: 1
- [2] name: Base, tvl_usd: 4624697485, chain_id: 8453
- [3] name: Solana, token_symbol: SOL, tvl_usd: 4578911140, gecko_id: solana
- [4] name: Tron, token_symbol: TRX, tvl_usd: 4289647948, gecko_id: tron
- [5] name: BSC, token_symbol: BNB, tvl_usd: 4261221161, gecko_id: binancecoin, chain_id: 56
- [6] name: Hyperliquid L1, token_symbol: HYPE, tvl_usd: 2242040176, gecko_id: hyperliquid
- [7] name: Bitcoin, token_symbol: BTC, tvl_usd: 2031382925, gecko_id: bitcoin
- [8] name: Arbitrum, token_symbol: ARB, tvl_usd: 1193892623, gecko_id: arbitrum, chain_id: 42161
- [9] name: Robinhood Chain, tvl_usd: 998861465, chain_id: 4663
- [10] name: Monad, token_symbol: MON, tvl_usd: 750838561, gecko_id: monad, chain_id: 143
- [11] name: Polygon, token_symbol: MATIC, tvl_usd: 588284193, gecko_id: polygon-ecosystem-token, chain_id: 137
- [12] name: Arc, tvl_usd: 588114659, chain_id: 5042
- [13] name: Ink, tvl_usd: 458090780, chain_id: 57073
- [14] name: Avalanche, token_symbol: AVAX, tvl_usd: 425618366, gecko_id: avalanche-2, chain_id: 43114
- [15] name: Anubis, tvl_usd: 410992251

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: crypto.defillama.chains_tvl · Method: GET
ParameterTypeReqSample / DefaultDescription
querystringoptional—Optional chain name or symbol filter (e.g. "Ethereum", "Solana", "Base")
limitnumberoptional20Max chains returned (1-50)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0005 / call$0/mo · Balance never expires
Remote MCP Toolcrypto_defillama_chains_tvlOAuth 2.1 Hub & /mcp/finance
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency29 ms$0 billed on empty or 4xx/5xx
Token Economy1885t → 355t (-81%)Partner credit: eligible

Frequently Asked Questions

How do I call DefiLlama Blockchain TVL Leaderboard (crypto.defillama.chains_tvl) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/crypto/defillama/chains_tvl with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool crypto_defillama_chains_tvl on https://mcp.agentapigate.ai/mcp.

What does crypto.defillama.chains_tvl cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.0005 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on crypto.defillama.chains_tvl?

Passing ?format=md transforms the response into normalized Markdown (~355 tokens vs ~1885 raw tokens, saving 81% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only finance endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["crypto.defillama.chains_tvl"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.