Home

Get Block by Number

POST
https://plasma.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
jsonrpcstringrequired

JSON-RPC version

methodstringrequired

JSON-RPC method name

paramsArray<string | boolean>required

Array with 2 parameters:

  1. Block number (hex string, e.g., "0x1b4") or special tags ("latest", "earliest", "pending")
  2. Boolean to specify if full transaction objects are returned (true) or only transaction hashes (false)
Show child attributes
One of

Block number as hex string or special tag

string

Return full transaction objects if true; else return only transaction hashes

boolean
idintegerrequired

Request ID

Response

200OK

Block information