Home

Get block

POST
https://sol.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns identity and transaction information about a confirmed block in the ledger

Body

application/json

Returns identity and transaction information about a confirmed block in the ledger

Object containing request fields.

jsonrpcstringrequired

JSON-RPC protocol version.

methodstringrequired

Solana JSON-RPC method name.

paramsArray<integer | object>required

Ordered positional parameters for the Solana JSON-RPC method:

  1. Slot number of the block to retrieve.
  2. Optional block response configuration object.
Show child attributes

One positional parameter. The expected meaning depends on its array index; see params.description.

Any of

Slot number of the block to retrieve.

integer
encodingstring

Encoding format for returned transaction data.

transactionDetailsstring

Level of transaction detail to include in the block response.

rewardsboolean

Whether to include block reward information.

commitmentstring

Bank commitment level used to evaluate the request.

maxSupportedTransactionVersioninteger

Highest transaction version the client can decode.

idintegerrequired

Client request identifier echoed by the server.

Response

200OK

Block response

400Bad Request

Bad Request. The Solana JSON-RPC request is malformed or contains invalid parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or Solana node failed while processing the request.