Home

Get Block by Number

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the block information for the specified block number. The second parameter indicates whether to return full transaction objects or just transaction hashes.

Body

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_getBlockByNumberrequired

JSON-RPC method name.

paramsArray<string | boolean>required

Array of parameters:

  1. Block number (hex string, e.g., "0x1b4") or special tags ("latest", "earliest", "pending")
  2. Boolean flag — if true, return full transactions; if false, only hashes.
Show child attributes

One positional parameter.

One of

Value returned by the method.

string

Value returned by the method.

boolean
idintegerrequired

Identifier echoed in the response.

Response

200OK

Block information