@solana/web3.js 1.77.3 → 1.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -1975,6 +1975,15 @@ type GetLatestBlockhashConfig = {
1975
1975
  /** The minimum slot that the request can be evaluated at */
1976
1976
  minContextSlot?: number;
1977
1977
  };
1978
+ /**
1979
+ * Configuration object for changing `isBlockhashValid` query behavior
1980
+ */
1981
+ type IsBlockhashValidConfig = {
1982
+ /** The level of commitment desired */
1983
+ commitment?: Commitment;
1984
+ /** The minimum slot that the request can be evaluated at */
1985
+ minContextSlot?: number;
1986
+ };
1978
1987
  /**
1979
1988
  * Configuration object for changing `getSlot` query behavior
1980
1989
  */
@@ -3332,6 +3341,10 @@ export class Connection {
3332
3341
  * @return {Promise<BlockhashWithExpiryBlockHeight>}
3333
3342
  */
3334
3343
  getLatestBlockhashAndContext(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<RpcResponseAndContext<BlockhashWithExpiryBlockHeight>>;
3344
+ /**
3345
+ * Returns whether a blockhash is still valid or not
3346
+ */
3347
+ isBlockhashValid(blockhash: Blockhash, rawConfig?: IsBlockhashValidConfig): Promise<RpcResponseAndContext<boolean>>;
3335
3348
  /**
3336
3349
  * Fetch the node version
3337
3350
  */