Home

Get latest block number

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the number of the latest block on the chain in hexadecimal format.

Body

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_blockNumberrequired

JSON-RPC method name.

paramsArray<any>required

This method does not take parameters; always send an empty array.

idintegerrequired

Identifier echoed in the response.

Response

200OK

The latest block number