eth_getBlockTransactionCountByHash
Defined in the Ethereum JSON-RPC Specification
Returns the number of transactions in a block from a block matching the given block hash.
Parameters
type GetBlockTransactionCountByHashParams = [string]
An array containing a single string: the hash of the block.
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 |