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

Please note that this endpoint is presently in beta and some of the totals are estimates. We expect these totals to achieve full accuracy following the completion of beta testing and the official launch, which is currently scheduled for November 3rd.

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"
}
}