@solana/web3.js 1.77.2 → 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.browser.cjs.js +879 -165
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +870 -157
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +911 -221
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +14 -1
- package/lib/index.esm.js +902 -213
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +1258 -486
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +3 -3
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +879 -165
- package/lib/index.native.js.map +1 -1
- package/package.json +14 -13
- package/src/connection.ts +41 -1
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
|
*/
|
|
@@ -3191,7 +3200,7 @@ export class Connection {
|
|
|
3191
3200
|
*
|
|
3192
3201
|
* @return {Promise<Array<{pubkey: PublicKey, account: AccountInfo<Buffer>}>>}
|
|
3193
3202
|
*/
|
|
3194
|
-
getProgramAccounts(programId: PublicKey, configOrCommitment
|
|
3203
|
+
getProgramAccounts(programId: PublicKey, configOrCommitment: GetProgramAccountsConfig & Readonly<{
|
|
3195
3204
|
withContext: true;
|
|
3196
3205
|
}>): Promise<RpcResponseAndContext<GetProgramAccountsResponse>>;
|
|
3197
3206
|
getProgramAccounts(programId: PublicKey, configOrCommitment?: GetProgramAccountsConfig | Commitment): Promise<GetProgramAccountsResponse>;
|
|
@@ -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
|
*/
|