Skip to main content

eth_blockNumber

Returns the current latest block number.

Parameters

None

Returns

blockNumber: hex - A hexadecimal of an integer representing the current block number the client is on

Example

Request

curl https://mainnet.moki.network \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'

Reponse

Example Response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3d3f1e"
}