Skip to main content

isBlockhashValid RPC Method

Returns whether a blockhash is still valid or not

Updated on
Apr 30, 2025

Parameters

blockhash
string
REQUIRED

The hash of the block encoded as base-58 string

object
object

An optional configuration object with the following fields:

commitment
string

The level of commitment required for the query. The options include:

Returns

result
object

The RpcResponse JSON object with the following fields:

context
object

The information about the current state of the program

slot
integer

The slot at which the blockhash validity was evaluated

apiVersion
string

The version of the Solana RPC API in use

value
boolean

True if the blockhash is still valid; otherwise false

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"context": {
5
"slot": 451948217,
6
"apiVersion": "4.2.2"
7
},
8
"value": false
9
},
10
"id": 45
11
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"context": {
5
"slot": 451948217,
6
"apiVersion": "4.2.2"
7
},
8
"value": false
9
},
10
"id": 45
11
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free