API Reference

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

Log in to see full request history

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.

Path Params
string
required
Defaults to demo

For higher throughput, create your own API key.

Body Params
int32
Defaults to 42
string
Defaults to 2.0
string
Defaults to eth_getBlockTransactionCountByNumber
array of strings
Defaults to 0xe8333
params
Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json