@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.browser.cjs.js +19 -19
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +19 -19
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +19 -19
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +17 -17
- package/lib/index.esm.js +19 -19
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +19 -19
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +19 -19
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +19 -19
package/lib/index.cjs.js
CHANGED
|
@@ -4787,7 +4787,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.t
|
|
|
4787
4787
|
/**
|
|
4788
4788
|
* Metadata for a parsed confirmed transaction on the ledger
|
|
4789
4789
|
*
|
|
4790
|
-
* @deprecated Deprecated since
|
|
4790
|
+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionMeta} instead.
|
|
4791
4791
|
*/
|
|
4792
4792
|
|
|
4793
4793
|
/**
|
|
@@ -4817,7 +4817,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.t
|
|
|
4817
4817
|
/**
|
|
4818
4818
|
* A confirmed transaction on the ledger
|
|
4819
4819
|
*
|
|
4820
|
-
* @deprecated Deprecated since
|
|
4820
|
+
* @deprecated Deprecated since RPC v1.8.0.
|
|
4821
4821
|
*/
|
|
4822
4822
|
|
|
4823
4823
|
/**
|
|
@@ -4847,7 +4847,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.t
|
|
|
4847
4847
|
/**
|
|
4848
4848
|
* A parsed and confirmed transaction on the ledger
|
|
4849
4849
|
*
|
|
4850
|
-
* @deprecated Deprecated since
|
|
4850
|
+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link ParsedTransactionWithMeta} instead.
|
|
4851
4851
|
*/
|
|
4852
4852
|
|
|
4853
4853
|
/**
|
|
@@ -4893,7 +4893,7 @@ const SimulatedTransactionResponseStruct = jsonRpcResultAndContext(superstruct.t
|
|
|
4893
4893
|
/**
|
|
4894
4894
|
* A confirmed block on the ledger
|
|
4895
4895
|
*
|
|
4896
|
-
* @deprecated Deprecated since
|
|
4896
|
+
* @deprecated Deprecated since RPC v1.8.0.
|
|
4897
4897
|
*/
|
|
4898
4898
|
|
|
4899
4899
|
/**
|
|
@@ -5618,7 +5618,7 @@ const GetParsedNoneModeBlockRpcResult = jsonRpcResult(superstruct.nullable(super
|
|
|
5618
5618
|
/**
|
|
5619
5619
|
* Expected JSON RPC response for the "getConfirmedBlock" message
|
|
5620
5620
|
*
|
|
5621
|
-
* @deprecated Deprecated since
|
|
5621
|
+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link GetBlockRpcResult} instead.
|
|
5622
5622
|
*/
|
|
5623
5623
|
const GetConfirmedBlockRpcResult = jsonRpcResult(superstruct.nullable(superstruct.type({
|
|
5624
5624
|
blockhash: superstruct.string(),
|
|
@@ -5668,7 +5668,7 @@ const GetParsedTransactionRpcResult = jsonRpcResult(superstruct.nullable(superst
|
|
|
5668
5668
|
/**
|
|
5669
5669
|
* Expected JSON RPC response for the "getRecentBlockhash" message
|
|
5670
5670
|
*
|
|
5671
|
-
* @deprecated Deprecated since
|
|
5671
|
+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link GetLatestBlockhashRpcResult} instead.
|
|
5672
5672
|
*/
|
|
5673
5673
|
const GetRecentBlockhashAndContextRpcResult = jsonRpcResultAndContext(superstruct.type({
|
|
5674
5674
|
blockhash: superstruct.string(),
|
|
@@ -6356,6 +6356,8 @@ class Connection {
|
|
|
6356
6356
|
|
|
6357
6357
|
/**
|
|
6358
6358
|
* Returns epoch activation information for a stake account that has been delegated
|
|
6359
|
+
*
|
|
6360
|
+
* @deprecated Deprecated since RPC v1.18; will be removed in a future version.
|
|
6359
6361
|
*/
|
|
6360
6362
|
async getStakeActivation(publicKey, commitmentOrConfig, epoch) {
|
|
6361
6363
|
const {
|
|
@@ -6927,7 +6929,7 @@ class Connection {
|
|
|
6927
6929
|
/**
|
|
6928
6930
|
* Fetch the current total currency supply of the cluster in lamports
|
|
6929
6931
|
*
|
|
6930
|
-
* @deprecated Deprecated since v1.2.8. Please use {@link getSupply} instead.
|
|
6932
|
+
* @deprecated Deprecated since RPC v1.2.8. Please use {@link getSupply} instead.
|
|
6931
6933
|
*/
|
|
6932
6934
|
async getTotalSupply(commitment) {
|
|
6933
6935
|
const result = await this.getSupply({
|
|
@@ -7044,7 +7046,7 @@ class Connection {
|
|
|
7044
7046
|
* Fetch a recent blockhash from the cluster, return with context
|
|
7045
7047
|
* @return {Promise<RpcResponseAndContext<{blockhash: Blockhash, feeCalculator: FeeCalculator}>>}
|
|
7046
7048
|
*
|
|
7047
|
-
* @deprecated Deprecated since
|
|
7049
|
+
* @deprecated Deprecated since RPC v1.9.0. Please use {@link getLatestBlockhash} instead.
|
|
7048
7050
|
*/
|
|
7049
7051
|
async getRecentBlockhashAndContext(commitment) {
|
|
7050
7052
|
const args = this._buildArgs([], commitment);
|
|
@@ -7072,7 +7074,7 @@ class Connection {
|
|
|
7072
7074
|
/**
|
|
7073
7075
|
* Fetch the fee calculator for a recent blockhash from the cluster, return with context
|
|
7074
7076
|
*
|
|
7075
|
-
* @deprecated Deprecated since
|
|
7077
|
+
* @deprecated Deprecated since RPC v1.9.0. Please use {@link getFeeForMessage} instead.
|
|
7076
7078
|
*/
|
|
7077
7079
|
async getFeeCalculatorForBlockhash(blockhash, commitment) {
|
|
7078
7080
|
const args = this._buildArgs([blockhash], commitment);
|
|
@@ -7125,7 +7127,7 @@ class Connection {
|
|
|
7125
7127
|
* Fetch a recent blockhash from the cluster
|
|
7126
7128
|
* @return {Promise<{blockhash: Blockhash, feeCalculator: FeeCalculator}>}
|
|
7127
7129
|
*
|
|
7128
|
-
* @deprecated Deprecated since
|
|
7130
|
+
* @deprecated Deprecated since RPC v1.8.0. Please use {@link getLatestBlockhash} instead.
|
|
7129
7131
|
*/
|
|
7130
7132
|
async getRecentBlockhash(commitment) {
|
|
7131
7133
|
try {
|
|
@@ -7507,7 +7509,7 @@ class Connection {
|
|
|
7507
7509
|
* Fetch a list of Transactions and transaction statuses from the cluster
|
|
7508
7510
|
* for a confirmed block.
|
|
7509
7511
|
*
|
|
7510
|
-
* @deprecated Deprecated since v1.
|
|
7512
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlock} instead.
|
|
7511
7513
|
*/
|
|
7512
7514
|
async getConfirmedBlock(slot, commitment) {
|
|
7513
7515
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
@@ -7586,7 +7588,7 @@ class Connection {
|
|
|
7586
7588
|
/**
|
|
7587
7589
|
* Fetch a list of Signatures from the cluster for a confirmed block, excluding rewards
|
|
7588
7590
|
*
|
|
7589
|
-
* @deprecated Deprecated since
|
|
7591
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getBlockSignatures} instead.
|
|
7590
7592
|
*/
|
|
7591
7593
|
async getConfirmedBlockSignatures(slot, commitment) {
|
|
7592
7594
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined, {
|
|
@@ -7608,7 +7610,7 @@ class Connection {
|
|
|
7608
7610
|
/**
|
|
7609
7611
|
* Fetch a transaction details for a confirmed transaction
|
|
7610
7612
|
*
|
|
7611
|
-
* @deprecated Deprecated since
|
|
7613
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getTransaction} instead.
|
|
7612
7614
|
*/
|
|
7613
7615
|
async getConfirmedTransaction(signature, commitment) {
|
|
7614
7616
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
@@ -7630,7 +7632,7 @@ class Connection {
|
|
|
7630
7632
|
/**
|
|
7631
7633
|
* Fetch parsed transaction details for a confirmed transaction
|
|
7632
7634
|
*
|
|
7633
|
-
* @deprecated Deprecated since
|
|
7635
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransaction} instead.
|
|
7634
7636
|
*/
|
|
7635
7637
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
7636
7638
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
@@ -7645,7 +7647,7 @@ class Connection {
|
|
|
7645
7647
|
/**
|
|
7646
7648
|
* Fetch parsed transaction details for a batch of confirmed transactions
|
|
7647
7649
|
*
|
|
7648
|
-
* @deprecated Deprecated since
|
|
7650
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getParsedTransactions} instead.
|
|
7649
7651
|
*/
|
|
7650
7652
|
async getParsedConfirmedTransactions(signatures, commitment) {
|
|
7651
7653
|
const batch = signatures.map(signature => {
|
|
@@ -7670,7 +7672,7 @@ class Connection {
|
|
|
7670
7672
|
* Fetch a list of all the confirmed signatures for transactions involving an address
|
|
7671
7673
|
* within a specified slot range. Max range allowed is 10,000 slots.
|
|
7672
7674
|
*
|
|
7673
|
-
* @deprecated Deprecated since v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
|
|
7675
|
+
* @deprecated Deprecated since RPC v1.3. Please use {@link getConfirmedSignaturesForAddress2} instead.
|
|
7674
7676
|
*
|
|
7675
7677
|
* @param address queried address
|
|
7676
7678
|
* @param startSlot start slot, inclusive
|
|
@@ -7724,9 +7726,7 @@ class Connection {
|
|
|
7724
7726
|
* Returns confirmed signatures for transactions involving an
|
|
7725
7727
|
* address backwards in time from the provided signature or most recent confirmed block
|
|
7726
7728
|
*
|
|
7727
|
-
*
|
|
7728
|
-
* @param address queried address
|
|
7729
|
-
* @param options
|
|
7729
|
+
* @deprecated Deprecated since RPC v1.7.0. Please use {@link getSignaturesForAddress} instead.
|
|
7730
7730
|
*/
|
|
7731
7731
|
async getConfirmedSignaturesForAddress2(address, options, commitment) {
|
|
7732
7732
|
const args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
|