Skip to main content

getbestblockhash RPC Method

Returns the hash of the tip block in the most-work fully-validated chain.

Updated on
Feb 03, 2026

Parameters

This method does not accept any parameters

Returns

result
string

The hash of the best (tip) block in the most-work fully-validated chain

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": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": "00000000000000000000b286a4d4ac73f6ad82e54d9ccf6d2d71c492ceeb4930",
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free