Skip to main content

0.01 credits per call

eth_blockNumber on MegaETH: Returns the latest block number on the chain.

Endpoint

Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.

Parameters

This method takes no parameters.

Returns

QUANTITY: Hex-encoded integer of the current block number.

Examples

Errors

Standard JSON-RPC errors: -32600 invalid request, -32601 method not found, -32602 invalid params.

Also available on