Skip to main content

chain_getBlockHash RPC Method

Loading...

Updated on
Apr 01, 2026

chain_getBlockHash RPC Method

Parameters

BlockNumber
integer
Loading...

Returns

result
string
Loading...
Request
1
curl -X POST "https://docs-demo.peaq-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "chain_getBlockHash",
6
"params": [],
7
"id": 1
8
}'
1
curl -X POST "https://docs-demo.peaq-mainnet.quiknode.pro/" \
2
-H "Content-Type: application/json" \
3
-d '{
4
"jsonrpc": "2.0",
5
"method": "chain_getBlockHash",
6
"params": [],
7
"id": 1
8
}'
Response
1
{
2
"jsonrpc": "2.0",
3
"result": "0x9e5972d2a3288f38a000221c3f411e15437f3eb86f44b5d454c45f15af6cd25b",
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": "0x9e5972d2a3288f38a000221c3f411e15437f3eb86f44b5d454c45f15af6cd25b",
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free