# Check validity of a blockhash (replace <YOUR_BLOCKHASH>):
curl -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "isBlockhashValid",
"params": [
"<YOUR_BLOCKHASH>"
]
}' \
<YOUR_RPC_URL>
# Check with commitment and minContextSlot (replace <YOUR_BLOCKHASH>):
curl -X POST -H "Content-Type: application/json" -d \
'{
"jsonrpc": "2.0",
"id": 1,
"method": "isBlockhashValid",
"params": [
"<YOUR_BLOCKHASH>",
{
"commitment": "confirmed",
"minContextSlot": 170000000
}
]
}' \
<YOUR_RPC_URL>