@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/README.md +2 -1
- package/lib/index.browser.cjs.js +6 -6
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -6
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -6
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +6 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -6
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +6 -6
- package/lib/index.native.js.map +1 -1
- package/package.json +20 -19
- package/src/connection.ts +5 -5
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]
|
|
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
|
|
package/lib/index.browser.cjs.js
CHANGED
|
@@ -5240,7 +5240,7 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5240
5240
|
|
|
5241
5241
|
/** @internal */
|
|
5242
5242
|
const COMMON_HTTP_HEADERS = {
|
|
5243
|
-
'solana-client': `js/${"1.
|
|
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('
|
|
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('
|
|
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('
|
|
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('
|
|
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: '
|
|
7001
|
+
methodName: 'getTransaction',
|
|
7002
7002
|
args
|
|
7003
7003
|
};
|
|
7004
7004
|
});
|