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 block stats

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