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.
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"
# 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| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | optional | — | Optional chain name or symbol filter (e.g. "Ethereum", "Solana", "Base") |
| limit | number | optional | 20 | Max chains returned (1-50) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0005 / call | $0/mo · Balance never expires |
| Remote MCP Tool | crypto_defillama_chains_tvl | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 29 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1885t → 355t (-81%) | Partner credit: eligible |
More DefiLlama (api.llama.fi) Data APIs
Query Total Value Locked (TVL), 1d/7d TVL change, chains, and categories across 4,000+ DeFi protocols.
Filter ranked DeFi yield pools across chains and protocols by APY, TVL, asset symbol, and stablecoin status using a compact server-side index.
Retrieve stablecoin circulating supply, peg price, mechanism (fiat-backed, crypto-backed, algorithmic), and 24h supply changes across top stablecoins.
Retrieve ranked 24h, 7d, and 30d protocol fee revenue across DEXs, lending markets, L1/L2 chains, and DeFi applications.
Retrieve decentralized exchange (DEX) 24h, 7d, and 30d trading volumes from DefiLlama with optional chain and protocol filtering.
Fetch current USD prices, decimals, symbols, and confidence scores for up to 25 native chain:address tokens via DefiLlama Coins API.
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.