eth_blockNumber - Base

eth_blockNumber. Retrieve the latest block number

eth_blockNumber - base [Value: 10CU]
The method is used to get the recent block number
Use cases

Use cases

  • Get the latest block number for syncing
  • Verify blockchain progress up to the current block
  • Check latest block number for monitoring purposes
Constraints

Constraints

  • Node must be synchronized with the network
  • Requires access to a reliable node
  • Network latency may affect response time
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://base.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_blockNumber"
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xfd2fdb"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
ParametersThis method does not accept any parameters.

Response

200
Returns a list of log objects or an empty list if there have been no updates since the previous query.

Response params

object
idinteger
jsonrpcstring
resultarray_of_strings
The latest block number, returned as a hexadecimal string.