curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"id": 1,
"params": [
"0xbb623d"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://base-mainnet.core.chainstack.com/2fc1de7f08c0465f6a28e3c355e0cb14 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getBlockTransactionCountByNumber",
"id": 1,
"params": [
"0xbb623d"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
blockNumber
— the number of the block for which the transaction count is being queried, encoded as a hexadecimal string.result
— the number of transactions in the specified block, encoded as a hexadecimal string. This includes all transactions that were part of the block at the time it was mined.eth_getBlockTransactionCountByNumber
method is useful for applications that monitor blockchain activity, such as wallets, block explorers, or analytics platforms. It can help these applications quickly gauge the level of activity within specific blocks or over a range of blocks.The transaction count of the block by number
The response is of type object
.