@solana/web3.js 1.32.0 → 1.32.1
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.esm.js +209 -30
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +209 -30
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +76 -7
- package/lib/index.esm.js +209 -30
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +209 -30
- 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/module.flow.js +88 -7
- package/package.json +1 -1
- package/src/connection.ts +249 -28
- package/src/util/cluster.ts +2 -2
- package/src/util/send-and-confirm-transaction.ts +1 -0
package/module.flow.js
CHANGED
|
@@ -664,6 +664,11 @@ declare module "@solana/web3.js" {
|
|
|
664
664
|
* preflight commitment level
|
|
665
665
|
*/
|
|
666
666
|
preflightCommitment?: Commitment,
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Maximum number of times for the RPC node to retry sending the transaction to the leader.
|
|
670
|
+
*/
|
|
671
|
+
maxRetries?: number,
|
|
667
672
|
...
|
|
668
673
|
};
|
|
669
674
|
|
|
@@ -685,6 +690,11 @@ declare module "@solana/web3.js" {
|
|
|
685
690
|
* preflight commitment level
|
|
686
691
|
*/
|
|
687
692
|
preflightCommitment?: Commitment,
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Maximum number of times for the RPC node to retry sending the transaction to the leader.
|
|
696
|
+
*/
|
|
697
|
+
maxRetries?: number,
|
|
688
698
|
...
|
|
689
699
|
};
|
|
690
700
|
|
|
@@ -1036,8 +1046,14 @@ declare module "@solana/web3.js" {
|
|
|
1036
1046
|
|
|
1037
1047
|
/**
|
|
1038
1048
|
* Metadata for a parsed confirmed transaction on the ledger
|
|
1049
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
1039
1050
|
*/
|
|
1040
|
-
declare export type ParsedConfirmedTransactionMeta =
|
|
1051
|
+
declare export type ParsedConfirmedTransactionMeta = ParsedTransactionMeta;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* Metadata for a parsed transaction on the ledger
|
|
1055
|
+
*/
|
|
1056
|
+
declare export type ParsedTransactionMeta = {
|
|
1041
1057
|
/**
|
|
1042
1058
|
* The fee charged for processing the transaction
|
|
1043
1059
|
*/
|
|
@@ -1296,8 +1312,14 @@ declare module "@solana/web3.js" {
|
|
|
1296
1312
|
|
|
1297
1313
|
/**
|
|
1298
1314
|
* A parsed and confirmed transaction on the ledger
|
|
1315
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
1299
1316
|
*/
|
|
1300
|
-
declare export type ParsedConfirmedTransaction =
|
|
1317
|
+
declare export type ParsedConfirmedTransaction = ParsedTransactionWithMeta;
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* A parsed transaction on the ledger with meta
|
|
1321
|
+
*/
|
|
1322
|
+
declare export type ParsedTransactionWithMeta = {
|
|
1301
1323
|
/**
|
|
1302
1324
|
* The slot during which the transaction was processed
|
|
1303
1325
|
*/
|
|
@@ -1311,7 +1333,7 @@ declare module "@solana/web3.js" {
|
|
|
1311
1333
|
/**
|
|
1312
1334
|
* Metadata produced from the transaction
|
|
1313
1335
|
*/
|
|
1314
|
-
meta:
|
|
1336
|
+
meta: ParsedTransactionMeta | null,
|
|
1315
1337
|
|
|
1316
1338
|
/**
|
|
1317
1339
|
* The unix timestamp of when the transaction was processed
|
|
@@ -1446,9 +1468,9 @@ declare module "@solana/web3.js" {
|
|
|
1446
1468
|
};
|
|
1447
1469
|
|
|
1448
1470
|
/**
|
|
1449
|
-
* A
|
|
1471
|
+
* A Block on the ledger with signatures only
|
|
1450
1472
|
*/
|
|
1451
|
-
declare export type
|
|
1473
|
+
declare export type BlockSignatures = {
|
|
1452
1474
|
/**
|
|
1453
1475
|
* Blockhash of this block
|
|
1454
1476
|
*/
|
|
@@ -2419,6 +2441,7 @@ account: AccountInfo<Buffer | ParsedAccountData>,...
|
|
|
2419
2441
|
blockhash: Blockhash,
|
|
2420
2442
|
feeCalculator: FeeCalculator,...
|
|
2421
2443
|
}>>}
|
|
2444
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2422
2445
|
*/
|
|
2423
2446
|
getRecentBlockhashAndContext(commitment?: Commitment): Promise<
|
|
2424
2447
|
RpcResponseAndContext<{
|
|
@@ -2436,6 +2459,7 @@ feeCalculator: FeeCalculator,...
|
|
|
2436
2459
|
|
|
2437
2460
|
/**
|
|
2438
2461
|
* Fetch the fee calculator for a recent blockhash from the cluster, return with context
|
|
2462
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2439
2463
|
*/
|
|
2440
2464
|
getFeeCalculatorForBlockhash(
|
|
2441
2465
|
blockhash: Blockhash,
|
|
@@ -2456,6 +2480,7 @@ feeCalculator: FeeCalculator,...
|
|
|
2456
2480
|
blockhash: Blockhash,
|
|
2457
2481
|
feeCalculator: FeeCalculator,...
|
|
2458
2482
|
}>}
|
|
2483
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2459
2484
|
*/
|
|
2460
2485
|
getRecentBlockhash(commitment?: Commitment): Promise<{
|
|
2461
2486
|
blockhash: Blockhash,
|
|
@@ -2463,6 +2488,34 @@ feeCalculator: FeeCalculator,...
|
|
|
2463
2488
|
...
|
|
2464
2489
|
}>;
|
|
2465
2490
|
|
|
2491
|
+
/**
|
|
2492
|
+
* Fetch the latest blockhash from the cluster
|
|
2493
|
+
* @return {Promise<{
|
|
2494
|
+
blockhash: Blockhash,
|
|
2495
|
+
lastValidBlockHeight: number,...
|
|
2496
|
+
}>}
|
|
2497
|
+
*/
|
|
2498
|
+
getLatestBlockhash(commitment?: Commitment): Promise<{
|
|
2499
|
+
blockhash: Blockhash,
|
|
2500
|
+
lastValidBlockHeight: number,
|
|
2501
|
+
...
|
|
2502
|
+
}>;
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
* Fetch the latest blockhash from the cluster
|
|
2506
|
+
* @return {Promise<{
|
|
2507
|
+
blockhash: Blockhash,
|
|
2508
|
+
lastValidBlockHeight: number,...
|
|
2509
|
+
}>}
|
|
2510
|
+
*/
|
|
2511
|
+
getLatestBlockhashAndContext(commitment?: Commitment): Promise<
|
|
2512
|
+
RpcResponseAndContext<{
|
|
2513
|
+
blockhash: Blockhash,
|
|
2514
|
+
lastValidBlockHeight: number,
|
|
2515
|
+
...
|
|
2516
|
+
}>
|
|
2517
|
+
>;
|
|
2518
|
+
|
|
2466
2519
|
/**
|
|
2467
2520
|
* Fetch the node version
|
|
2468
2521
|
*/
|
|
@@ -2485,7 +2538,7 @@ feeCalculator: FeeCalculator,...
|
|
|
2485
2538
|
): Promise<BlockResponse | null>;
|
|
2486
2539
|
|
|
2487
2540
|
/**
|
|
2488
|
-
* Fetch a
|
|
2541
|
+
* Fetch a confirmed or finalized transaction from the cluster.
|
|
2489
2542
|
*/
|
|
2490
2543
|
getTransaction(
|
|
2491
2544
|
signature: string,
|
|
@@ -2495,6 +2548,22 @@ feeCalculator: FeeCalculator,...
|
|
|
2495
2548
|
}
|
|
2496
2549
|
): Promise<TransactionResponse | null>;
|
|
2497
2550
|
|
|
2551
|
+
/**
|
|
2552
|
+
* Fetch parsed transaction details for a confirmed or finalized transaction
|
|
2553
|
+
*/
|
|
2554
|
+
getParsedTransaction(
|
|
2555
|
+
signature: TransactionSignature,
|
|
2556
|
+
commitment?: Finality
|
|
2557
|
+
): Promise<ParsedConfirmedTransaction | null>;
|
|
2558
|
+
|
|
2559
|
+
/**
|
|
2560
|
+
* Fetch parsed transaction details for a batch of confirmed transactions
|
|
2561
|
+
*/
|
|
2562
|
+
getParsedTransactions(
|
|
2563
|
+
signatures: TransactionSignature[],
|
|
2564
|
+
commitment?: Finality
|
|
2565
|
+
): Promise<(ParsedConfirmedTransaction | null)[]>;
|
|
2566
|
+
|
|
2498
2567
|
/**
|
|
2499
2568
|
* Fetch a list of Transactions and transaction statuses from the cluster
|
|
2500
2569
|
* for a confirmed block.
|
|
@@ -2514,16 +2583,26 @@ feeCalculator: FeeCalculator,...
|
|
|
2514
2583
|
commitment?: Finality
|
|
2515
2584
|
): Promise<Array<number>>;
|
|
2516
2585
|
|
|
2586
|
+
/**
|
|
2587
|
+
* Fetch a list of Signatures from the cluster for a block, excluding rewards
|
|
2588
|
+
*/
|
|
2589
|
+
getBlockSignatures(
|
|
2590
|
+
slot: number,
|
|
2591
|
+
commitment?: Finality
|
|
2592
|
+
): Promise<BlockSignatures>;
|
|
2593
|
+
|
|
2517
2594
|
/**
|
|
2518
2595
|
* Fetch a list of Signatures from the cluster for a confirmed block, excluding rewards
|
|
2596
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2519
2597
|
*/
|
|
2520
2598
|
getConfirmedBlockSignatures(
|
|
2521
2599
|
slot: number,
|
|
2522
2600
|
commitment?: Finality
|
|
2523
|
-
): Promise<
|
|
2601
|
+
): Promise<BlockSignatures>;
|
|
2524
2602
|
|
|
2525
2603
|
/**
|
|
2526
2604
|
* Fetch a transaction details for a confirmed transaction
|
|
2605
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2527
2606
|
*/
|
|
2528
2607
|
getConfirmedTransaction(
|
|
2529
2608
|
signature: TransactionSignature,
|
|
@@ -2532,6 +2611,7 @@ feeCalculator: FeeCalculator,...
|
|
|
2532
2611
|
|
|
2533
2612
|
/**
|
|
2534
2613
|
* Fetch parsed transaction details for a confirmed transaction
|
|
2614
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2535
2615
|
*/
|
|
2536
2616
|
getParsedConfirmedTransaction(
|
|
2537
2617
|
signature: TransactionSignature,
|
|
@@ -2540,6 +2620,7 @@ feeCalculator: FeeCalculator,...
|
|
|
2540
2620
|
|
|
2541
2621
|
/**
|
|
2542
2622
|
* Fetch parsed transaction details for a batch of confirmed transactions
|
|
2623
|
+
* @deprecated [object Object],[object Object],[object Object]
|
|
2543
2624
|
*/
|
|
2544
2625
|
getParsedConfirmedTransactions(
|
|
2545
2626
|
signatures: TransactionSignature[],
|