Home

getblock

POST
https://divi.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns information about the block with the given block hash. Optional verbosity levels determine the level of detail in the response:

  • 0: Returns a string that is serialized, hex-encoded data for the block.
  • 1: Returns a JSON object with basic block details and txids.
  • 2: Returns a JSON object with detailed transaction info.

Body

application/json
jsonrpcstringrequired
idstringrequired
methodstringgetblockrequired
paramsArray<string | integer>required

Parameters:

  1. blockhash (string) – The hash of the block
  2. verbosity (integer, optional) – Level of detail: 0, 1, or 2
Show child attributes
One of
string
integer

Response

200OK

Block information retrieved successfully

401Unauthorized

Unauthorized

500Internal Server Error

Internal Server Error