@solana/web3.js 1.93.3 → 1.93.4

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
@@ -2266,7 +2266,7 @@ type TokenBalance = {
2266
2266
  /**
2267
2267
  * Metadata for a parsed confirmed transaction on the ledger
2268
2268
  *
2269
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionMeta} instead.
2269
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionMeta} instead.
2270
2270
  */
2271
2271
  type ParsedConfirmedTransactionMeta = ParsedTransactionMeta;
2272
2272
  /**
@@ -2371,7 +2371,7 @@ type VersionedTransactionResponse = {
2371
2371
  /**
2372
2372
  * A confirmed transaction on the ledger
2373
2373
  *
2374
- * @deprecated Deprecated since Solana v1.8.0.
2374
+ * @deprecated Deprecated since RPC v1.8.0.
2375
2375
  */
2376
2376
  type ConfirmedTransaction = {
2377
2377
  /** The slot during which the transaction was processed */
@@ -2454,7 +2454,7 @@ type ParsedTransaction = {
2454
2454
  /**
2455
2455
  * A parsed and confirmed transaction on the ledger
2456
2456
  *
2457
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
2457
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
2458
2458
  */
2459
2459
  type ParsedConfirmedTransaction = ParsedTransactionWithMeta;
2460
2460
  /**
@@ -2628,7 +2628,7 @@ type VersionedNoneModeBlockResponse = Omit<VersionedBlockResponse, 'transactions
2628
2628
  /**
2629
2629
  * A confirmed block on the ledger
2630
2630
  *
2631
- * @deprecated Deprecated since Solana v1.8.0.
2631
+ * @deprecated Deprecated since RPC v1.8.0.
2632
2632
  */
2633
2633
  type ConfirmedBlock = {
2634
2634
  /** Blockhash of this block */
@@ -3274,6 +3274,8 @@ declare class Connection {
3274
3274
  getMultipleAccountsInfo(publicKeys: PublicKey[], commitmentOrConfig?: Commitment | GetMultipleAccountsConfig): Promise<(AccountInfo<Buffer> | null)[]>;
3275
3275
  /**
3276
3276
  * Returns epoch activation information for a stake account that has been delegated
3277
+ *
3278
+ * @deprecated Deprecated since RPC v1.18; will be removed in a future version.
3277
3279
  */
3278
3280
  getStakeActivation(publicKey: PublicKey, commitmentOrConfig?: Commitment | GetStakeActivationConfig, epoch?: number): Promise<StakeActivationData>;
3279
3281
  /**
@@ -3340,7 +3342,7 @@ declare class Connection {
3340
3342
  /**
3341
3343
  * Fetch the current total currency supply of the cluster in lamports
3342
3344
  *
3343
- * @deprecated Deprecated since v1.2.8. Please use {@link getSupply} instead.
3345
+ * @deprecated Deprecated since RPC v1.2.8. Please use {@link getSupply} instead.
3344
3346
  */
3345
3347
  getTotalSupply(commitment?: Commitment): Promise<number>;
3346
3348
  /**
@@ -3377,7 +3379,7 @@ declare class Connection {
3377
3379
  * Fetch a recent blockhash from the cluster, return with context
3378
3380
  * @return {Promise<RpcResponseAndContext<{blockhash: Blockhash, feeCalculator: FeeCalculator}>>}
3379
3381
  *
3380
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
3382
+ * @deprecated Deprecated since RPC v1.9.0. Please use {@link getLatestBlockhash} instead.
3381
3383
  */
3382
3384
  getRecentBlockhashAndContext(commitment?: Commitment): Promise<RpcResponseAndContext<{
3383
3385
  blockhash: Blockhash;
@@ -3391,7 +3393,7 @@ declare class Connection {
3391
3393
  /**
3392
3394
  * Fetch the fee calculator for a recent blockhash from the cluster, return with context
3393
3395
  *
3394
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getFeeForMessage} instead.
3396
+ * @deprecated Deprecated since RPC v1.9.0. Please use {@link getFeeForMessage} instead.
3395
3397
  */
3396
3398
  getFeeCalculatorForBlockhash(blockhash: Blockhash, commitment?: Commitment): Promise<RpcResponseAndContext<FeeCalculator | null>>;
3397
3399
  /**
@@ -3406,7 +3408,7 @@ declare class Connection {
3406
3408
  * Fetch a recent blockhash from the cluster
3407
3409
  * @return {Promise<{blockhash: Blockhash, feeCalculator: FeeCalculator}>}
3408
3410
  *
3409
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
3411
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link getLatestBlockhash} instead.
3410
3412
  */
3411
3413
  getRecentBlockhash(commitment?: Commitment): Promise<{
3412
3414
  blockhash: Blockhash;
@@ -3516,7 +3518,7 @@ declare class Connection {
3516
3518
  * Fetch a list of Transactions and transaction statuses from the cluster
3517
3519
  * for a confirmed block.
3518
3520
  *
3519
- * @deprecated Deprecated since v1.13.0. Please use {@link getBlock} instead.
3521
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlock} instead.
3520
3522
  */
3521
3523
  getConfirmedBlock(slot: number, commitment?: Finality): Promise<ConfirmedBlock>;
3522
3524
  /**
@@ -3530,32 +3532,32 @@ declare class Connection {
3530
3532
  /**
3531
3533
  * Fetch a list of Signatures from the cluster for a confirmed block, excluding rewards
3532
3534
  *
3533
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getBlockSignatures} instead.
3535
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlockSignatures} instead.
3534
3536
  */
3535
3537
  getConfirmedBlockSignatures(slot: number, commitment?: Finality): Promise<BlockSignatures>;
3536
3538
  /**
3537
3539
  * Fetch a transaction details for a confirmed transaction
3538
3540
  *
3539
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getTransaction} instead.
3541
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getTransaction} instead.
3540
3542
  */
3541
3543
  getConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ConfirmedTransaction | null>;
3542
3544
  /**
3543
3545
  * Fetch parsed transaction details for a confirmed transaction
3544
3546
  *
3545
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransaction} instead.
3547
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransaction} instead.
3546
3548
  */
3547
3549
  getParsedConfirmedTransaction(signature: TransactionSignature, commitment?: Finality): Promise<ParsedConfirmedTransaction | null>;
3548
3550
  /**
3549
3551
  * Fetch parsed transaction details for a batch of confirmed transactions
3550
3552
  *
3551
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransactions} instead.
3553
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransactions} instead.
3552
3554
  */
3553
3555
  getParsedConfirmedTransactions(signatures: TransactionSignature[], commitment?: Finality): Promise<(ParsedConfirmedTransaction | null)[]>;
3554
3556
  /**
3555
3557
  * Fetch a list of all the confirmed signatures for transactions involving an address
3556
3558
  * within a specified slot range. Max range allowed is 10,000 slots.
3557
3559
  *
3558
- * @deprecated Deprecated since v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
3560
+ * @deprecated Deprecated since RPC v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
3559
3561
  *
3560
3562
  * @param address queried address
3561
3563
  * @param startSlot start slot, inclusive
@@ -3566,9 +3568,7 @@ declare class Connection {
3566
3568
  * Returns confirmed signatures for transactions involving an
3567
3569
  * address backwards in time from the provided signature or most recent confirmed block
3568
3570
  *
3569
- *
3570
- * @param address queried address
3571
- * @param options
3571
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
3572
3572
  */
3573
3573
  getConfirmedSignaturesForAddress2(address: PublicKey, options?: ConfirmedSignaturesForAddress2Options, commitment?: Finality): Promise<Array<ConfirmedSignatureInfo>>;
3574
3574
  /**
package/lib/index.esm.js CHANGED
@@ -4757,7 +4757,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
4757
4757
  /**
4758
4758
  * Metadata for a parsed confirmed transaction on the ledger
4759
4759
  *
4760
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionMeta} instead.
4760
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionMeta} instead.
4761
4761
  */
4762
4762
 
4763
4763
  /**
@@ -4787,7 +4787,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
4787
4787
  /**
4788
4788
  * A confirmed transaction on the ledger
4789
4789
  *
4790
- * @deprecated Deprecated since Solana v1.8.0.
4790
+ * @deprecated Deprecated since RPC v1.8.0.
4791
4791
  */
4792
4792
 
4793
4793
  /**
@@ -4817,7 +4817,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
4817
4817
  /**
4818
4818
  * A parsed and confirmed transaction on the ledger
4819
4819
  *
4820
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
4820
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
4821
4821
  */
4822
4822
 
4823
4823
  /**
@@ -4863,7 +4863,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(type({
4863
4863
  /**
4864
4864
  * A confirmed block on the ledger
4865
4865
  *
4866
- * @deprecated Deprecated since Solana v1.8.0.
4866
+ * @deprecated Deprecated since RPC v1.8.0.
4867
4867
  */
4868
4868
 
4869
4869
  /**
@@ -5588,7 +5588,7 @@ const GetParsedNoneModeBlockRpcResult = jsonRpcResult(nullable(type({
5588
5588
  /**
5589
5589
  * Expected JSON RPC response for the "getConfirmedBlock" message
5590
5590
  *
5591
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link GetBlockRpcResult} instead.
5591
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link GetBlockRpcResult} instead.
5592
5592
  */
5593
5593
  const GetConfirmedBlockRpcResult = jsonRpcResult(nullable(type({
5594
5594
  blockhash: string(),
@@ -5638,7 +5638,7 @@ const GetParsedTransactionRpcResult = jsonRpcResult(nullable(type({
5638
5638
  /**
5639
5639
  * Expected JSON RPC response for the "getRecentBlockhash" message
5640
5640
  *
5641
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link GetLatestBlockhashRpcResult} instead.
5641
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link GetLatestBlockhashRpcResult} instead.
5642
5642
  */
5643
5643
  const GetRecentBlockhashAndContextRpcResult = jsonRpcResultAndContext(type({
5644
5644
  blockhash: string(),
@@ -6326,6 +6326,8 @@ class Connection {
6326
6326
 
6327
6327
  /**
6328
6328
  * Returns epoch activation information for a stake account that has been delegated
6329
+ *
6330
+ * @deprecated Deprecated since RPC v1.18; will be removed in a future version.
6329
6331
  */
6330
6332
  async getStakeActivation(publicKey, commitmentOrConfig, epoch) {
6331
6333
  const {
@@ -6897,7 +6899,7 @@ class Connection {
6897
6899
  /**
6898
6900
  * Fetch the current total currency supply of the cluster in lamports
6899
6901
  *
6900
- * @deprecated Deprecated since v1.2.8. Please use {@link getSupply} instead.
6902
+ * @deprecated Deprecated since RPC v1.2.8. Please use {@link getSupply} instead.
6901
6903
  */
6902
6904
  async getTotalSupply(commitment) {
6903
6905
  const result = await this.getSupply({
@@ -7014,7 +7016,7 @@ class Connection {
7014
7016
  * Fetch a recent blockhash from the cluster, return with context
7015
7017
  * @return {Promise<RpcResponseAndContext<{blockhash: Blockhash, feeCalculator: FeeCalculator}>>}
7016
7018
  *
7017
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
7019
+ * @deprecated Deprecated since RPC v1.9.0. Please use {@link getLatestBlockhash} instead.
7018
7020
  */
7019
7021
  async getRecentBlockhashAndContext(commitment) {
7020
7022
  const args = this._buildArgs([], commitment);
@@ -7042,7 +7044,7 @@ class Connection {
7042
7044
  /**
7043
7045
  * Fetch the fee calculator for a recent blockhash from the cluster, return with context
7044
7046
  *
7045
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getFeeForMessage} instead.
7047
+ * @deprecated Deprecated since RPC v1.9.0. Please use {@link getFeeForMessage} instead.
7046
7048
  */
7047
7049
  async getFeeCalculatorForBlockhash(blockhash, commitment) {
7048
7050
  const args = this._buildArgs([blockhash], commitment);
@@ -7095,7 +7097,7 @@ class Connection {
7095
7097
  * Fetch a recent blockhash from the cluster
7096
7098
  * @return {Promise<{blockhash: Blockhash, feeCalculator: FeeCalculator}>}
7097
7099
  *
7098
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getLatestBlockhash} instead.
7100
+ * @deprecated Deprecated since RPC v1.8.0. Please use {@link getLatestBlockhash} instead.
7099
7101
  */
7100
7102
  async getRecentBlockhash(commitment) {
7101
7103
  try {
@@ -7477,7 +7479,7 @@ class Connection {
7477
7479
  * Fetch a list of Transactions and transaction statuses from the cluster
7478
7480
  * for a confirmed block.
7479
7481
  *
7480
- * @deprecated Deprecated since v1.13.0. Please use {@link getBlock} instead.
7482
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlock} instead.
7481
7483
  */
7482
7484
  async getConfirmedBlock(slot, commitment) {
7483
7485
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
@@ -7556,7 +7558,7 @@ class Connection {
7556
7558
  /**
7557
7559
  * Fetch a list of Signatures from the cluster for a confirmed block, excluding rewards
7558
7560
  *
7559
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getBlockSignatures} instead.
7561
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlockSignatures} instead.
7560
7562
  */
7561
7563
  async getConfirmedBlockSignatures(slot, commitment) {
7562
7564
  const args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
@@ -7578,7 +7580,7 @@ class Connection {
7578
7580
  /**
7579
7581
  * Fetch a transaction details for a confirmed transaction
7580
7582
  *
7581
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getTransaction} instead.
7583
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getTransaction} instead.
7582
7584
  */
7583
7585
  async getConfirmedTransaction(signature, commitment) {
7584
7586
  const args = this._buildArgsAtLeastConfirmed([signature], commitment);
@@ -7600,7 +7602,7 @@ class Connection {
7600
7602
  /**
7601
7603
  * Fetch parsed transaction details for a confirmed transaction
7602
7604
  *
7603
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransaction} instead.
7605
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransaction} instead.
7604
7606
  */
7605
7607
  async getParsedConfirmedTransaction(signature, commitment) {
7606
7608
  const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
@@ -7615,7 +7617,7 @@ class Connection {
7615
7617
  /**
7616
7618
  * Fetch parsed transaction details for a batch of confirmed transactions
7617
7619
  *
7618
- * @deprecated Deprecated since Solana v1.8.0. Please use {@link getParsedTransactions} instead.
7620
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransactions} instead.
7619
7621
  */
7620
7622
  async getParsedConfirmedTransactions(signatures, commitment) {
7621
7623
  const batch = signatures.map(signature => {
@@ -7640,7 +7642,7 @@ class Connection {
7640
7642
  * Fetch a list of all the confirmed signatures for transactions involving an address
7641
7643
  * within a specified slot range. Max range allowed is 10,000 slots.
7642
7644
  *
7643
- * @deprecated Deprecated since v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
7645
+ * @deprecated Deprecated since RPC v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
7644
7646
  *
7645
7647
  * @param address queried address
7646
7648
  * @param startSlot start slot, inclusive
@@ -7694,9 +7696,7 @@ class Connection {
7694
7696
  * Returns confirmed signatures for transactions involving an
7695
7697
  * address backwards in time from the provided signature or most recent confirmed block
7696
7698
  *
7697
- *
7698
- * @param address queried address
7699
- * @param options
7699
+ * @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
7700
7700
  */
7701
7701
  async getConfirmedSignaturesForAddress2(address, options, commitment) {
7702
7702
  const args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);