RPC MethodsHTTPisBlockhashValid

Miscellaneous

isBlockhashValid

Returns whether a blockhash is still valid or not.

Parameters

blockhashstring required

The blockhash of the block to evaluate, as base-58 encoded string.

configobject optional

Configuration object.

commitmentstring

Commitment level.

minContextSlotnumber

The minimum slot.

Result

bool

true if the blockhash is still valid.

Example

Request
JSON
curl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
  "jsonrpc": "2.0",
  "id": 45,
  "method": "isBlockhashValid",
  "params": [
    "J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW",
    { "commitment": "finalized" }
  ]
}'
Response
JSON
{
"jsonrpc": "2.0",
"result": {
"context": {
"slot": 2483
},
"value": false
},
"id": 45
}