eth_getBlockTransactionCountByHash
Returns the number of transactions in the block with the given block hash.
Parameters
block hash
:[Required] A string representing the hash (32 bytes) of a block.
Returns
block transaction count
: A hexadecimal equivalent of the integer representing the number of transactions in the block.
Example
Replace <YOUR-API-KEY>
with an API key from your Infura dashboard.