isBlockhashValid - Solana

isBlockhashValid. Checks the validity of a specified blockhash

isBlockhashValid - solana [Value: 10CU]
Checks the validity of a specified blockhash, assisting in verifying blockhashes for transaction processing and blockchain operations
Use cases

Use cases

  • Verify the validity of a specific blockhash
  • Ensure blockhash accuracy for transaction processing
  • Validate blockhashes to maintain network integrity
Constraints

Constraints

  • Only checks the validity of the provided blockhash
  • Dependent on the current state of the network
  • API rate limits may restrict frequent validation
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
    {
      "id":45,
      "jsonrpc":"2.0",
      "method":"isBlockhashValid",
      "params":[
        "ENTER_BLOCKHASH_ID_HERE",
        {"commitment":"processed"}
      ]
    }
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "slot": 98123569
    },
    "value": true
  },
  "id": 45
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
blockhashstring
minContextSlotinteger
The minimum slot number at which the request can be evaluated.
delinquentSlotDistanceinteger
Specifies the number of slots a validator must fall behind the tip to be considered delinquent. This parameter is passed as an integer, and it is not recommended to specify this argument.
commitmentstring
The level of commitment required for the query
  • 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

Response

200
Returns true if the blockhash remains valid; otherwise, it returns false.

Response params

boolean
idinteger
jsonrpcstring
resultboolean