API ReferenceToken APIGet Volume StatsGet Volume Stats By ChainVersion: 2.2Get Volume Stats By Chain Mainnet OnlyGEThttps://deep-index.moralis.io/api/v2.2/volume/chainsReturns volume statistics, active wallets, and total transactions for supported blockchain networksResponses200 Returns volume statistics for all supported chainsobjectAPI KEYTest Live APINode.jsPythoncURLGoPHP// Dependencies to install:// $ npm install node-fetch --save// add "type": "module" to package.jsonimport 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));# Dependencies to install:# $ python -m pip install requestsimport requestsurl = "https://deep-index.moralis.io/api/v2.2/volume/chains"headers = { "Accept": "application/json", "X-API-Key": "YOUR_API_KEY"}response = requests.request("GET", url, headers=headers)print(response.text)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/volume/chains' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/volume/chains" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/volume/chains', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns volume statistics for all supported chains{ "chains": [ { "chainId": "solana", "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 } } ]}