Skip to main content

bb_getblockhash RPC Method

Returns the hash of the block at the given height.

Updated on
Nov 17, 2023

bb_getblockhash RPC Method

Please note that this RPC method requires the Blockbook RPC add-on enabled on your QuickNode endpoint.

Parameters

blockHeight
string
REQUIRED
The block height

Returns

result
object
A result object with the following field:
blockHash
string
The hash of the block at the given height
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "bb_getblockhash", "params": ["816884"]}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free