@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.iife.js CHANGED
@@ -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('getConfirmedTransaction', args);
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('getConfirmedTransaction', args);
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: 'getConfirmedTransaction',
20848
+ methodName: 'getTransaction',
20849
20849
  args
20850
20850
  };
20851
20851
  });