Skip to main content
GET
/
?module=block&action=eth_block_number
Get Latest Block Number (JSON-RPC Format)
curl --request GET \
  --url 'https://eth.blockscout.com/api/?module=block&action=eth_block_number'
{
  "jsonrpc": "2.0",
  "result": "0x103538a",
  "id": 1
}

Query Parameters

module
enum<string>
required

Module name (must be 'block')

Available options:
block
action
enum<string>
required
Available options:
eth_block_number

Response

200 - application/json

Latest block number retrieved successfully

jsonrpc
string
Example:

"2.0"

result
string

Block number in hex format

Example:

"0x103538a"

id
integer
Example:

1