Skip to main content

getblockhash RPC Method

Returns the hash of the block provided its height.

Updated on
Apr 29, 2026

Parameters

height
integer
REQUIRED

The height index of the block in the blockchain.

Returns

result
string

The hash of the block

error
string

(Optional) The error message, if any

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0000000b70480327694608408728c65c1f1a300bfe705b01baca0f5504092e1b"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free