Skip to main content
Version: 2.2

Get block stats

GEThttps://deep-index.moralis.io/api/v2.2/block/:block_number_or_hash/stats

Get the stats for a block

Beta - Early Launch Notice

This endpoint is currently in beta and some of the totals are estimates. Totals will become fully accurate upon completion of our re-architecture, currently scheduled for 25th September.

PATH PARAMS
block_number_or_hashstringrequired
The block number or hash
QUERY PARAMS
chainstring
The chain to query
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.block.getBlockStats({
"chain": "0x1",
"blockNumberOrHash": 1023323
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"transactions": {
"total": "1000"
},
"nft_transfers": {
"total": "1000"
},
"token_transfers": {
"total": "1000"
}
}