Skip to main content

getblockhash RPC Method

Returns the hash of the block provided its height.

Updated on
Feb 03, 2026

Parameters

height
integer
REQUIRED

The height index of the block in the blockchain.

Returns

result
string

The hash of the block

error
object | null

(Optional) JSON-RPC error when the request failed; omitted or null on success

code
integer

Error code

message
string

Error message

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