Type aliases
IsBlockhashValidApi
IsBlockhashValidApi =
object
Methods
isBlockhashValid()
isBlockhashValid(
blockhash
,config?
):SolanaRpcResponse
<IsBlockhashValidApiResponse
>
Returns whether a blockhash is still valid or not.
The last 300 blockhashes produced are considered valid. This equates to an age of ~2 minutes.
Parameters
Parameter | Type | Description |
---|---|---|
blockhash | Blockhash | A SHA-256 hash as base-58 encoded string |
config? | Readonly <{ commitment? : Commitment ; minContextSlot? : Slot ; }> | - |
Returns
SolanaRpcResponse
<IsBlockhashValidApiResponse
>