Skip to main content

eth_getBlockTransactionCountByHash RPC Method

Returns the number of transactions for the block matching the given block hash.

Updated on
Jun 15, 2026

Parameters

hash
string
REQUIRED

The hash of the block

Returns

result
string | null

The number of transactions associated with a specific block, in hexadecimal value, or null if the block is not found

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": null
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": null
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free