Coinbase Wallet SDK
eth_getBlockTransactionCountByHash
Get the number of transactions in a block by block hash
Defined in the Ethereum JSON-RPC Specification
Returns the number of transactions in a block by block hash.
Parameters
Hash of a block (32 bytes).
Returns
The number of transactions in this block as a hexadecimal string.
Error Handling
Code | Message | Description |
---|---|---|
-32602 | Invalid block hash | The provided block hash is invalid |
4100 | Requested method not supported | The method is not supported by the wallet |
This method returns the count of transactions in a specific block identified by its hash.