On-Chain Metrics
onchain_metricsOn-chain TVL and network fees/revenue (24h/7d/30d) for one chain. Use a chain's own token symbol (e.g. 'ETH', 'SOL', 'BNB') — returns a plain 'not a tracked chain' message for tokens that aren't L1/L2s. Does not cover gas price (gwei).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "onchain_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Chain token symbol, e.g. 'ETH' or 'SOL' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | DeFiLlama chain name | |
| tvlUsd | No | Total value locked, USD | |
| tracked | Yes | False when the symbol is not a chain DeFiLlama tracks (most tokens are not); the fields below are then absent | |
| fees7dUsd | No | Network fees, last 7 days, USD | |
| fees24hUsd | No | Network fees, last 24h, USD | |
| fees30dUsd | No | Network fees, last 30 days, USD | |
| fees24hChangePct | No | 24h fees change vs the prior day, percent |