Skip to main content

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"