Skip to main content

bb_getBlockHash RPC Method

Returns the hash of the block at the given height.

Updated on
Nov 14, 2024

bb_getBlockHash RPC Method

Please note that this RPC method requires the Polygon Blockbook JSON-RPC add-on enabled on your QuickNode endpoint.

Parameters

blockHeight
integer
REQUIRED
The block height

Returns

result
object
A result object with the following field:
blockHash
string
The hash of the block at the given height
Request
1
curl --location 'https://docs-demo.matic.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"method": "bb_getBlockHash",
5
"params": [
6
19441691
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