Coinbase Wallet SDK
eth_blockNumber
Get the number of the most recent block
Defined in the Ethereum JSON-RPC Specification
Returns the number of most recent block.
Parameters
This method does not accept any parameters.
Returns
A hexadecimal string representing the integer of the current block number the client is on.
Error Handling
Code | Message | Description |
---|---|---|
4100 | Requested method not supported | The method is not supported by the wallet |
The result is the block number in hexadecimal format. Convert to decimal to get the actual block number.