AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

isBlockhashValid RPC Method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.

Parameters:

  1. blockhash - the blockhash of this block, as base-58 encoded string.
  2. Object - (optional) Commitment

    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.

    minContextSlot - (optional) set the minimum slot that the request can be evaluated at

Returns:

  1. Boolean - True if the blockhash is still valid

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
    {
      "id":45,
      "jsonrpc":"2.0",
      "method":"isBlockhashValid",
      "params":[
        "ENTER_BLOCKHASH_ID_HERE",
        {"commitment":"processed"}
      ]
    }
'
Ready to get started? Create a free account