@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/lib/index.esm.js CHANGED
@@ -5959,7 +5959,7 @@ const LogsNotificationResult = type({
5959
5959
 
5960
5960
  /** @internal */
5961
5961
  const COMMON_HTTP_HEADERS = {
5962
- 'solana-client': `js/${"1.95.8"}`
5962
+ 'solana-client': `js/${"1.0.0-maintenance"}`
5963
5963
  };
5964
5964
 
5965
5965
  /**
@@ -7577,7 +7577,7 @@ class Connection {
7577
7577
  */
7578
7578
  async getConfirmedBlock(slot, commitment) {
7579
7579
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
7580
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7580
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7581
7581
  const res = create(unsafeRes, GetConfirmedBlockRpcResult);
7582
7582
  if ('error' in res) {
7583
7583
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7659,7 +7659,7 @@ class Connection {
7659
7659
  transactionDetails: 'signatures',
7660
7660
  rewards: false
7661
7661
  });
7662
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7662
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7663
7663
  const res = create(unsafeRes, GetBlockSignaturesRpcResult);
7664
7664
  if ('error' in res) {
7665
7665
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7678,7 +7678,7 @@ class Connection {
7678
7678
  */
7679
7679
  async getConfirmedTransaction(signature, commitment) {
7680
7680
  const args = this._buildArgsAtLeastConfirmed([signature], commitment);
7681
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
7681
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
7682
7682
  const res = create(unsafeRes, GetTransactionRpcResult);
7683
7683
  if ('error' in res) {
7684
7684
  throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
@@ -7700,7 +7700,7 @@ class Connection {
7700
7700
  */
7701
7701
  async getParsedConfirmedTransaction(signature, commitment) {
7702
7702
  const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
7703
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
7703
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
7704
7704
  const res = create(unsafeRes, GetParsedTransactionRpcResult);
7705
7705
  if ('error' in res) {
7706
7706
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
@@ -7717,7 +7717,7 @@ class Connection {
7717
7717
  const batch = signatures.map(signature => {
7718
7718
  const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
7719
7719
  return {
7720
- methodName: 'getConfirmedTransaction',
7720
+ methodName: 'getTransaction',
7721
7721
  args
7722
7722
  };
7723
7723
  });