Chains API
Chain trading activity
How much a whole chain is trading: USD volume and trade count over trailing 1h/4h/12h/24h windows. No token address needed.
/api/external/chain-analysis/chain-stats/{chain}What it returns
Chain-level trading activity, for the chain itself rather than any one token — the only endpoint here that takes no token or wallet address. Figures cover four TRAILING windows that NEST inside one another: h4 includes h1, h12 includes h4, h24 includes h12. They are cumulative, not consecutive buckets, so they must not be summed. 24 hours is the longest window published; there is no 7-day or 30-day figure. Every field is null when nothing could be established for the chain — never 0, which here would claim a chain saw no trading at all. asOf reports the freshness of the INDEXED DATA the figures were computed from — the block and instant the source had last processed when it answered, never the instant this request was made, and null when the source could not say. A cache may sit in front of this endpoint, so a caller cannot otherwise tell a just-measured number from one served minutes ago. asOf.at is the SOURCE clock, not ours: measured live, some chains reported an instant up to a second AHEAD of this service, so now minus asOf.at can legitimately be slightly negative and should be read as zero age rather than as an error.
Chains
- Solana SOL
- BNB Chain BNB
- Ethereum ETH
- Stable STABLE
- Base BASE
- Robinhood Chain RHC
- Arc ARC
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/chain-analysis/chain-stats/SOL"
| Parameter | Description |
|---|---|
chainpath · string · required | The chain to query. CELO, ARB, OP and SCROLL return 400 here. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type |
|---|---|
volumeUsd | object |
volumeUsd.h1 | number | null |
volumeUsd.h4 | number | null |
volumeUsd.h12 | number | null |
volumeUsd.h24 | number | null |
transactions | object |
transactions.h1 | number | null |
transactions.h4 | number | null |
transactions.h12 | number | null |
transactions.h24 | number | null |
tvlUsd | number | null |
asOf | object |
asOf.block | number | null |
asOf.at | number | null |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key