eth_getBlockTransactionCountByNumber
Defined in the Ethereum JSON-RPC Specification
Returns the number of transactions in a block matching the given block number.
Parameters
type GetBlockTransactionCountByNumberParams = [string]
An array containing a single string: the block number (as a hexadecimal) or tag.
Valid tags: "earliest"
, "latest"
, "pending"
, "safe"
, "finalized"
Returns
string
The number of transactions in the specified block, encoded as a hexadecimal.
Example
"0x10" // 16 transactions in the block
Errors
Code | Message |
---|---|
4200 | Unsupported method |