Home

Get a block by number

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

Block tags accepted by this node: earliest, latest, pending, or a hex block number. safe and finalized are NOT supported and fail with -32602 invalid argument N: hex string without 0x prefix - Lachesis aBFT finalises immediately, so there is no separate safe/finalized head.

Changed in the 29 August 2026 network upgrade. Only when full transaction objects are requested (true as the second parameter):

  • each transaction may carry authorizationList (EIP-7702 set-code transactions, type: "0x4");
  • feeRefund is omitted when the node has no refund value for the transaction, where "0x0" used to be returned.

The block object itself is unchanged - despite Shanghai and Cancun activating, no withdrawals, blobGasUsed, excessBlobGas or parentBeaconBlockRoot fields appear.

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

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.