Home

Get block information by block hash

POST
https://bsc.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns information about a block specified by its hash.
The second parameter determines whether full transaction objects or only transaction hashes are returned.

Body

application/json

Returns information about a block specified by its hash.
The second parameter determines whether full transaction objects or only transaction hashes are returned.

Request payload for Get block information by block hash.

jsonrpcstringrequired

JSON-RPC protocol version (always "2.0")

methodstringrequired

The JSON-RPC method name

paramsArray<string>required

Array of parameters:

  1. Block hash (string)
  2. Boolean flag — if true, return full transactions; if false, only hashes.
idintegerrequired

Request identifier

Response

200OK

Successful response

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

JSON-RPC method or upstream error