getblock
Authorizations
ApiKeyAuthApiKeyAuthapi-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
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.
Request payload containing the documented method parameters and client request identifier.
jsonrpcstringrequiredJSON-RPC protocol version.
idstringrequiredClient-provided request identifier echoed in the response.
methodstringgetblockrequiredJSON-RPC method name.
paramsArray<string | integer>requiredParameters:
blockhash(string) – The hash of the blockverbosity(integer, optional) – Level of detail: 0, 1, or 2
Response
Block information retrieved successfully
Unauthorized: API key is present but rejected by the NOWNodes gateway.
Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.
Missing API key. The NOWNodes gateway returns plain text for this error.
Internal Server Error