Skip to main content
Version: 3.1.0

Get Block Number

eth_blockNumber

eth_blockNumber Gets the number of the most recent block. This function requires input as follows:

  • URL 1 : RPC endpoint (Blockchain URL).
  • ID 2 : RPC ID(Optional), used when calling multiple asynchronous RPC calls to differentiate your response data from each other.

Eth Get Block Number

The returned Response 3 is a struct that holds the JSON- info of the header and body of the response as well as https status code.

note

If Success is True that only means that the response from the Blockchain was successful only.

If successful, returns an integer value of the latest Block Number 4.