Get Chain Metrics
get_chain_metricsCompare blockchain ecosystem health via DeFiLlama: current TVL, 7/30-day TVL change, and aggregate fee activity. Pass chains such as ['Ethereum', 'Arbitrum', 'Solana'] for a focused comparison, or omit chains to inspect the highest-TVL ecosystems.
Use when: Use for ecosystem-level comparisons — which chains are growing, where fee activity concentrates, or how a chain's TVL trended. For a single protocol's economics use get_protocol_tvl instead.
Limitations: Third-party DeFiLlama analytics; historical and fee fields fail open (null) for uncovered chains. Not a real-time measure of chain throughput or security.
Alternatives: get_protocol_tvl, get_dex_volume
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window used when selecting the historical TVL points to inspect. | |
| limit | No | Maximum number of chain rows to return when the result is not explicitly filtered. | |
| chains | No | Optional chain names to compare, such as ['Ethereum', 'Arbitrum', 'Solana']. When omitted, return the highest-TVL chains up to limit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| error | No | ||
| chains | Yes | ||
| error_type | No | ||
| provenance | No | Source and freshness metadata for the DeFiLlama response. | |
| total_available | Yes | ||
| requested_chains | Yes |