@solana/web3.js 1.95.8 → 1.97.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/README.md +2 -1
- package/lib/index.browser.cjs.js +6 -6
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -6
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -6
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -6
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +6 -6
- package/lib/index.native.js.map +1 -1
- package/package.json +20 -19
- package/src/connection.ts +5 -5
package/lib/index.iife.js
CHANGED
|
@@ -19087,7 +19087,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
19087
19087
|
|
|
19088
19088
|
/** @internal */
|
|
19089
19089
|
const COMMON_HTTP_HEADERS = {
|
|
19090
|
-
'solana-client': `js/${"1.
|
|
19090
|
+
'solana-client': `js/${"1.0.0-maintenance"}`
|
|
19091
19091
|
};
|
|
19092
19092
|
|
|
19093
19093
|
/**
|
|
@@ -20705,7 +20705,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20705
20705
|
*/
|
|
20706
20706
|
async getConfirmedBlock(slot, commitment) {
|
|
20707
20707
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
20708
|
-
const unsafeRes = await this._rpcRequest('
|
|
20708
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
20709
20709
|
const res = create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
20710
20710
|
if ('error' in res) {
|
|
20711
20711
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -20787,7 +20787,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20787
20787
|
transactionDetails: 'signatures',
|
|
20788
20788
|
rewards: false
|
|
20789
20789
|
});
|
|
20790
|
-
const unsafeRes = await this._rpcRequest('
|
|
20790
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
20791
20791
|
const res = create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
20792
20792
|
if ('error' in res) {
|
|
20793
20793
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -20806,7 +20806,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20806
20806
|
*/
|
|
20807
20807
|
async getConfirmedTransaction(signature, commitment) {
|
|
20808
20808
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
20809
|
-
const unsafeRes = await this._rpcRequest('
|
|
20809
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
20810
20810
|
const res = create(unsafeRes, GetTransactionRpcResult);
|
|
20811
20811
|
if ('error' in res) {
|
|
20812
20812
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -20828,7 +20828,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20828
20828
|
*/
|
|
20829
20829
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
20830
20830
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
20831
|
-
const unsafeRes = await this._rpcRequest('
|
|
20831
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
20832
20832
|
const res = create(unsafeRes, GetParsedTransactionRpcResult);
|
|
20833
20833
|
if ('error' in res) {
|
|
20834
20834
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -20845,7 +20845,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
20845
20845
|
const batch = signatures.map(signature => {
|
|
20846
20846
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
20847
20847
|
return {
|
|
20848
|
-
methodName: '
|
|
20848
|
+
methodName: 'getTransaction',
|
|
20849
20849
|
args
|
|
20850
20850
|
};
|
|
20851
20851
|
});
|