eth_getBlockTransactionCountByNumberHTTP

Returns the number of transactions in a block.

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.

blockQUANTITY|TAGrequired

Block number or tag.

Tags
latestearliestsafefinalizedpending
Defaultlatest

params array (shape)

eth_getBlockTransactionCountByNumber · paramsjson
1[
2 "latest"
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.