Kit
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

ParameterTypeDescription
blockhashBlockhashA SHA-256 hash as base-58 encoded string
config?Readonly<{ commitment?: Commitment; minContextSlot?: Slot; }>-

Returns

SolanaRpcResponse<IsBlockhashValidApiResponse>

See

https://solana.com/docs/rpc/http/isblockhashvalid

On this page