Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.2

Get Volume Stats By Chain Mainnet Only

GEThttps://deep-index.moralis.io/api/v2.2/volume/chains

Returns volume statistics, active wallets, and total transactions for supported blockchain networks

Responses
API KEY
// Dependencies to install:
// $ npm install node-fetch --save
// add "type": "module" to package.json

import fetch from 'node-fetch';

const options = {
method: 'GET',
headers: {
accept: 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
};

fetch('https://deep-index.moralis.io/api/v2.2/volume/chains', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
Response Example
{
"chains": [
{
"chainId": "0x1",
"totalVolume": {
"5m": 1690971.708286464,
"1h": 46146546.893509656,
"6h": 325726471.73284143,
"24h": 2296130181.8957353
},
"activeWallets": {
"5m": 416,
"1h": 4860,
"6h": 40954,
"24h": 193324
},
"totalTransactions": {
"5m": 617,
"1h": 5913,
"6h": 50554,
"24h": 240210
}
}
]
}