Returns the number of transactions in a block matching the given block number.

Parameters

Params - a string array containing (required):

  • QUANTITY|TAG(hex string|string, required) - integer block number in hex string format, or the string "earliest", "latest" or "pending", as in the default block parameter.

Returns

QUANTITY(hex string) - integer of the number of transactions in this block.

Language
Click Try It! to start a request and see the response here!