Eth_blockNumber
Returns the number of the latest block on the chain in hexadecimal format.
Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample:
The JSON-RPC protocol version
2.0methodstringRequiredExample:
Name of the method being called
eth_blockNumberparamsarrayRequired
This method does not take parameters; always send an empty array.
idintegerRequiredExample:
A unique ID for the request
1Responses
200
The latest block number
application/json
post
/POST / HTTP/1.1
Host: core.nownodes.io
api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}200
The latest block number
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x10d4f"
}