Get Chain Metrics
get_chain_metricsCompare blockchain ecosystem health using DeFiLlama current TVL, 7-day and 30-day TVL changes, and aggregate fee activity. Pass chains such as ['Ethereum', 'Arbitrum', 'Solana'] for a focused comparison, or omit chains to inspect the highest-TVL ecosystems. Historical and fee fields fail open when DeFiLlama does not cover a chain.
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 |