@solana/web3.js 1.95.8 → 1.96.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/README.md CHANGED
@@ -12,7 +12,8 @@
12
12
  [semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
13
13
  [semantic-release-url]: https://github.com/semantic-release/semantic-release
14
14
 
15
- > [!NOTE] This is the maintenance branch for the 1.x line of `@solana/web3.js`. The current development branch can be found [here](https://github.com/solana-labs/solana-web3.js).
15
+ > [!NOTE]
16
+ > This is the maintenance branch for the 1.x line of `@solana/web3.js`. You can find the successor to this library [here](https://l.anza.xyz/s/js-sdk-repo).
16
17
 
17
18
  # Solana JavaScript SDK (v1.x)
18
19
 
@@ -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');