@solana/web3.js 1.96.0 → 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/lib/index.browser.cjs.js +3 -3
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +3 -3
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +3 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +3 -3
- 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 +3 -3
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +3 -3
package/lib/index.native.js
CHANGED
|
@@ -6959,7 +6959,7 @@ class Connection {
|
|
|
6959
6959
|
*/
|
|
6960
6960
|
async getConfirmedTransaction(signature, commitment) {
|
|
6961
6961
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
6962
|
-
const unsafeRes = await this._rpcRequest('
|
|
6962
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6963
6963
|
const res = superstruct.create(unsafeRes, GetTransactionRpcResult);
|
|
6964
6964
|
if ('error' in res) {
|
|
6965
6965
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -6981,7 +6981,7 @@ class Connection {
|
|
|
6981
6981
|
*/
|
|
6982
6982
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
6983
6983
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
6984
|
-
const unsafeRes = await this._rpcRequest('
|
|
6984
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6985
6985
|
const res = superstruct.create(unsafeRes, GetParsedTransactionRpcResult);
|
|
6986
6986
|
if ('error' in res) {
|
|
6987
6987
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -6998,7 +6998,7 @@ class Connection {
|
|
|
6998
6998
|
const batch = signatures.map(signature => {
|
|
6999
6999
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
7000
7000
|
return {
|
|
7001
|
-
methodName: '
|
|
7001
|
+
methodName: 'getTransaction',
|
|
7002
7002
|
args
|
|
7003
7003
|
};
|
|
7004
7004
|
});
|