Skip to main content
Version: 2.2

Get block stats

Don't have an API key yet?

Start using this API for your project today.

Get your free API key
GEThttps://deep-index.moralis.io/api/v2.2/block/:block_number_or_hash/stats

Get the stats for a block

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