API Reference

eth_getBlockTransactionCountByHash

Returns the number of transactions in the block with the given block hash.

Request Parameters

  • BLOCK HASH [required] - a string representing the hash (32 bytes) of a block.

Response

Returns the number of transactions in the block with the given block hash.

Result Fields

  • BLOCK TRANSACTION COUNT - a hex number of the integer representing the number of transactions in the provided block.

Examples

Example Responses
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x50"
}
Language
Click Try It! to start a request and see the response here!