isBlockhashValid
Returns whether a blockhash is still valid or not
isBlockhashValid
POST http://srpc.solapi.pro/?api_key=<api-key>
Request:
const response = await fetch('http://srpc.solapi.pro/?api_key=<api-key>', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 45,
"method": "isBlockhashValid",
"params": [
"J7rBdM6AecPDEZp8aPq5iPSNKVkU5Q76F3oAV4eW5wsW",
{
"commitment": "processed"
}
]
}),
});
const data = await response.json();Response:
Last updated