Defined in the Ethereum JSON-RPC SpecificationDocumentation Index
Fetch the complete documentation index at: https://base-a060aa97-meyer9-discv5-p2p-protocol-id.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Returns the number of transactions in a block by block number.
Parameters
Integer block number, or the string “latest”, “earliest” or “pending”.
Returns
The number of transactions in this block as a hexadecimal string.
Error Handling
| Code | Message | Description |
|---|---|---|
| -32602 | Invalid block parameter | The provided block parameter 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 number.