Skip to main content

eth_getBlockTransactionCountByHash RPC Method

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

Updated on
Nov 23, 2026
The /evm path retains recent data only and returns null for older blocks and transactions. To run this example, replace the block hash with a recent one or send the request to /nanoreth. See History on /evm for details.

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 when the block was not found

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free