Skip to main content

isBlockhashValid RPC Method

Returns whether a blockhash is still valid or not

Updated on
Sep 20, 2024

isBlockhashValid RPC Method

Parameters

blockhash
REQUIRED
The hash of the block encoded as base-58 string
object
array
An object with the following fields:
finalized
the node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized.
confirmed
the node will query the most recent block that has been voted on by supermajority of the cluster.
processed
the node will query its most recent block. Note that the block may not be complete.
minContextSlot
integer
The minimum slot at which the request can be evaluated

Returns

result
True if the blockhash is still valid otherwise false
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '
5
{
6
"id":45,
7
"jsonrpc":"2.0",
8
"method":"isBlockhashValid",
9
"params":[
10
"ENTER_BLOCKHASH_ID_HERE",
11
{"commitment":"processed"}
12
]
13
}
14
'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free