Skip to main content

ord_getBlockHash RPC Method

Fetches the block hash using a block height.

Updated on
May 17, 2024

ord_getBlockHash RPC Method

Please note that this method requires the Ordinals & Runes API add-on enabled on your QuickNode endpoint.

Parameters

blockHeight
string
REQUIRED
The height of the block for which the hash is to be fetched

Returns

blockHash
The block hash of the given block height
Request
1
curl --location 'https://docs-demo.btc.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "ord_getBlockHash",
5
"params": [
6
843395
7
],
8
"id": 1,
9
"jsonrpc": "2.0"
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free