eth_blockNumber - Ethereum

eth_blockNumber. Returns the number of the most recent block

eth_blockNumber - ethereum [Value: 10CU]
Returns the number of the most recent block.
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 Ethereum 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://eth.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 array of log objects, or an empty array if nothing has changed since last poll.

Response params

object
idinteger
jsonrpcstring
resultarray_of_strings
An array of addresses owned by the client