GET /v2/chart/{adapterType}/chain/{chain}
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/defillama/v2/chart/{adapterType}/chain/{chain}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeOne chain's history for an adapter ([[unixTs, value]…]).
Parameters
| name | in | type | description | |
|---|---|---|---|---|
adapterType | path | strdexs | fees | options | derivatives | aggregators | bridge-aggregators | required | Chart adapter (DefiLlama's volume/fee/TVL metric family). Every enum member returns the same shape. example: dexs |
chain | path | str | required | Chain name or hub alias (Ethereum, eth, 137, …) — mapped to DefiLlama's capitalized chain name example: Ethereum |
Response
type: array
pagination: none
sample: {
"[0]": "array"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/defillama/v2/chart/dexs/chain/Ethereum"