For the complete documentation index, see llms.txt. This page is also available as Markdown.

Getblock

getblock operations.

getblock

post

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.

Authorizations
api-keystringRequired

NOWNodes API key passed in the api-key header.

Body

Request payload for getblock.

jsonrpcstringRequired

JSON-RPC protocol version used by Bitcoin Core.

Example: 1.0
idstringRequired

Client-provided request identifier (echoed back in the response).

Example: curltest
methodstringRequired

JSON-RPC method name.

Example: getblock
Responses
200

Successful JSON-RPC response containing the block data.

application/json

Object containing getblock response details.

errorone of · nullableRequired

JSON-RPC error object or null on success.

or
stringOptional

JSON-RPC error object. Null when the request succeeds.

Example: {"code":-28,"message":"Service temporarily unavailable"}
idone of · nullableRequired

Request id echoed by the server.

stringOptional

Client-provided request identifier echoed in the response.

Example: curltest
or
integerOptional

Client-provided request identifier echoed in the response.

Example: curltest
Other propertiesanyOptional
post/

Last updated