Skip to main content

getbestblockhash RPC Method

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

Updated on
Oct 4, 2023

getbestblockhash RPC Method

Parameters

This method does not accept any parameters

Returns

hex
A string that is serialized, hex-encoded data for block hash
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{ "method": "getbestblockhash" }'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free