Home

Get Block by Hash

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 hash. 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_getBlockByHashrequired

JSON-RPC method name.

paramsArray<string | boolean>required

Array of parameters:

  1. Block hash (string)
  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