POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_blockNumber"
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

Ronin API method that returns the latest block number of the blockchain. A block number is a hexadecimal number representing the block’s position in the blockchain. For example, the block number 0x69B5B means that the block is the 432,987th block in the blockchain.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • result — the integer value of the node’s latest block number is synced to, encoded as hexadecimal. The block number is used to identify the block’s position in the blockchain and is updated every time a new block is added to the chain.

Use case

A possible use case for the eth_blockNumber method in Ronin is for applications that need to be aware of the current block number—some applications may need to be mindful of the current block number to function correctly. For example, a DApp may use the current block number to determine the expiration date of a time-limited offer.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_blockNumber

Response

200 - application/json
The most recent block number
jsonrpc
string
id
integer
result
string