NEXUS

eth_blockNumber

Returns the number of the most recent block.

Request Format

{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}

Response Format

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2377"
}

Parameters

None.

Return Value

  • Block Number (uint): Returns the latest block number in hexadecimal format (with 0x prefix).

Example

Request

{
  "jsonrpc": "2.0",
  "method": "eth_blockNumber",
  "params": [],
  "id": 1
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2377"
}

Notes

  • The block number increases as new blocks are mined.
  • Useful for tracking blockchain progress and ensuring synchronization with the network.
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x2377"
}
© 2025 NEXUS Co., Ltd. All Rights Reserved.