@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.
@@ -5240,7 +5240,7 @@ const LogsNotificationResult = superstruct.type({
5240
5240
 
5241
5241
  /** @internal */
5242
5242
  const COMMON_HTTP_HEADERS = {
5243
- 'solana-client': `js/${"1.95.8"}`
5243
+ 'solana-client': `js/${"1.0.0-maintenance"}`
5244
5244
  };
5245
5245
 
5246
5246
  /**
@@ -6858,7 +6858,7 @@ class Connection {
6858
6858
  */
6859
6859
  async getConfirmedBlock(slot, commitment) {
6860
6860
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
6861
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
6861
+ const unsafeRes = await this._rpcRequest('getBlock', args);
6862
6862
  const res = superstruct.create(unsafeRes, GetConfirmedBlockRpcResult);
6863
6863
  if ('error' in res) {
6864
6864
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -6940,7 +6940,7 @@ class Connection {
6940
6940
  transactionDetails: 'signatures',
6941
6941
  rewards: false
6942
6942
  });
6943
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
6943
+ const unsafeRes = await this._rpcRequest('getBlock', args);
6944
6944
  const res = superstruct.create(unsafeRes, GetBlockSignaturesRpcResult);
6945
6945
  if ('error' in res) {
6946
6946
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -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('getConfirmedTransaction', args);
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('getConfirmedTransaction', args);
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: 'getConfirmedTransaction',
7001
+ methodName: 'getTransaction',
7002
7002
  args
7003
7003
  };
7004
7004
  });