Getblockhash

getblockhash

post

Returns the block hash of the block at the given height in the blockchain. You must provide a block height (0-based index).

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 1.0
idstringRequired
methodstring · enumRequiredPossible values:
paramsinteger[]Required

Parameters:

  1. height (integer) — The height (index) of the block.
Example: [855000]
Responses
chevron-right
200

Block hash successfully retrieved

application/json
resultstringOptional

The hash of the block at the specified height

Example: 0000000000000000000a1e63be6bb1d1f4e6d2a345234a4a6b8f86e4f0de3c5a
errorobject · nullableOptional

Null if successful, otherwise contains error info

idstringOptional

The ID of the request

post
/

Last updated