Getblock

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
Body
jsonrpcstringRequiredExample: 1.0
idstringRequired
methodstring · enumRequiredPossible values:
Responses
chevron-right
200

Block information retrieved successfully

application/json
errorobject · nullableOptional

Error object if an error occurred, otherwise null

idstringOptional

ID of the request

Example: curltest
post
/

Last updated