isBlockhashValid
Returns whether a blockhash (state root) is still valid or not
Parameters
Blockhash <string>
- the state root of the block to evaluate, as base-58 encoded string
Result
<bool>
- true
if the blockhash is still valid
Code sample
curl "https://testnet.atlas.xyz/?apikey=$ATLAS_API_KEY" -X POST -H "Content-Type: application/json" -d '
{
"id": "0bdba4c1-3073-41b0-b849-46f14e004e38",
"jsonrpc": "2.0",
"method": "isBlockhashValid",
"params": [
"DDTMUeGtQ5scAf7NuyaewMJ77xZk7vhgV5MG9Y8fphTX"
]
}
'
Response
{
"jsonrpc": "2.0",
"id": "0bdba4c1-3073-41b0-b849-46f14e004e38",
"result": {
"context": {
"slot": 11136744
},
"value": true
}
}