eth_getBlockTransactionCountByHashHTTP

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

Chain EthereumTransport HTTPTry-it live

How to use

  1. Pick an API key (or paste one) in the Try it panel.
  2. Fill each parameter (order = params array index).
  3. Send request — live against the gateway; counts toward daily quota.

Parameters

JSON-RPC positional arguments — order matches the array sent in params. Index badges below match array positions.

hashDATA(32B)required

Block hash.

params array (shape)

eth_getBlockTransactionCountByHash · paramsjson
1[
2 "$LATEST_BLOCK_HASH"
3]

Response fields

The result row describes the complete result; other rows describe its object fields or array elements. Indented rows describe nested members. For subscriptions,params.* rows describe later notifications rather than the initial reply.

FieldTypeDescription
resultQUANTITY|nullNumber of transactions in the block. Null when the block is unavailable; 0x0 means an existing block with zero matching entries.