eth_blockNumber
Returns the number of the latest block mined.
Parameters
None
Return Type
HexString<Integer>
- Number of the latest block.
Example
TypeScript
await provider.request({ method: "eth_blockNumber", params: [] });
// "0xe659e6"
Returns the number of the latest block mined.
None
HexString<Integer>
- Number of the latest block.
await provider.request({ method: "eth_blockNumber", params: [] });
// "0xe659e6"