Skip to main content

getblockhash RPC Method

Returns the hash of the block provided its height.

Updated on
Oct 4, 2023

getblockhash RPC Method

Parameters

height
numeric
REQUIRED
The height index of the block in the blockchain.

Returns

result
The hash of the block
error
The error message, if any
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "getblockhash", "params": [1000]}'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free