getblockhash

Back to blockchain

Summary

Returns hash of block in best-block-chain at height provided.

Description

Returns hash of block in best-block-chain at height provided.

Arguments

  • height (NUM, required): The height index

Results

  • value (STR_HEX): The block hash

Examples

qbit-cli getblockhash 1000
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getblockhash", "params": [1000]}' -H 'content-type: application/json' http://127.0.0.1:8352/