@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.cjs.js CHANGED
@@ -5989,7 +5989,7 @@ const LogsNotificationResult = superstruct.type({
5989
5989
 
5990
5990
  /** @internal */
5991
5991
  const COMMON_HTTP_HEADERS = {
5992
- 'solana-client': `js/${"1.95.8"}`
5992
+ 'solana-client': `js/${"1.0.0-maintenance"}`
5993
5993
  };
5994
5994
 
5995
5995
  /**
@@ -7607,7 +7607,7 @@ class Connection {
7607
7607
  */
7608
7608
  async getConfirmedBlock(slot, commitment) {
7609
7609
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
7610
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7610
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7611
7611
  const res = superstruct.create(unsafeRes, GetConfirmedBlockRpcResult);
7612
7612
  if ('error' in res) {
7613
7613
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7689,7 +7689,7 @@ class Connection {
7689
7689
  transactionDetails: 'signatures',
7690
7690
  rewards: false
7691
7691
  });
7692
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7692
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7693
7693
  const res = superstruct.create(unsafeRes, GetBlockSignaturesRpcResult);
7694
7694
  if ('error' in res) {
7695
7695
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7708,7 +7708,7 @@ class Connection {
7708
7708
  */
7709
7709
  async getConfirmedTransaction(signature, commitment) {
7710
7710
  const args = this._buildArgsAtLeastConfirmed([signature], commitment);
7711
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
7711
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
7712
7712
  const res = superstruct.create(unsafeRes, GetTransactionRpcResult);
7713
7713
  if ('error' in res) {
7714
7714
  throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
@@ -7730,7 +7730,7 @@ class Connection {
7730
7730
  */
7731
7731
  async getParsedConfirmedTransaction(signature, commitment) {
7732
7732
  const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
7733
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
7733
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
7734
7734
  const res = superstruct.create(unsafeRes, GetParsedTransactionRpcResult);
7735
7735
  if ('error' in res) {
7736
7736
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
@@ -7747,7 +7747,7 @@ class Connection {
7747
7747
  const batch = signatures.map(signature => {
7748
7748
  const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
7749
7749
  return {
7750
- methodName: 'getConfirmedTransaction',
7750
+ methodName: 'getTransaction',
7751
7751
  args
7752
7752
  };
7753
7753
  });