@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/lib/index.browser.esm.js
CHANGED
|
@@ -5214,7 +5214,7 @@ const LogsNotificationResult = type({
|
|
|
5214
5214
|
|
|
5215
5215
|
/** @internal */
|
|
5216
5216
|
const COMMON_HTTP_HEADERS = {
|
|
5217
|
-
'solana-client': `js/${"1.
|
|
5217
|
+
'solana-client': `js/${"1.0.0-maintenance"}`
|
|
5218
5218
|
};
|
|
5219
5219
|
|
|
5220
5220
|
/**
|
|
@@ -6832,7 +6832,7 @@ class Connection {
|
|
|
6832
6832
|
*/
|
|
6833
6833
|
async getConfirmedBlock(slot, commitment) {
|
|
6834
6834
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
6835
|
-
const unsafeRes = await this._rpcRequest('
|
|
6835
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6836
6836
|
const res = create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
6837
6837
|
if ('error' in res) {
|
|
6838
6838
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -6914,7 +6914,7 @@ class Connection {
|
|
|
6914
6914
|
transactionDetails: 'signatures',
|
|
6915
6915
|
rewards: false
|
|
6916
6916
|
});
|
|
6917
|
-
const unsafeRes = await this._rpcRequest('
|
|
6917
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6918
6918
|
const res = create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
6919
6919
|
if ('error' in res) {
|
|
6920
6920
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -6933,7 +6933,7 @@ class Connection {
|
|
|
6933
6933
|
*/
|
|
6934
6934
|
async getConfirmedTransaction(signature, commitment) {
|
|
6935
6935
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
6936
|
-
const unsafeRes = await this._rpcRequest('
|
|
6936
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6937
6937
|
const res = create(unsafeRes, GetTransactionRpcResult);
|
|
6938
6938
|
if ('error' in res) {
|
|
6939
6939
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -6955,7 +6955,7 @@ class Connection {
|
|
|
6955
6955
|
*/
|
|
6956
6956
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
6957
6957
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
6958
|
-
const unsafeRes = await this._rpcRequest('
|
|
6958
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6959
6959
|
const res = create(unsafeRes, GetParsedTransactionRpcResult);
|
|
6960
6960
|
if ('error' in res) {
|
|
6961
6961
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -6972,7 +6972,7 @@ class Connection {
|
|
|
6972
6972
|
const batch = signatures.map(signature => {
|
|
6973
6973
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
6974
6974
|
return {
|
|
6975
|
-
methodName: '
|
|
6975
|
+
methodName: 'getTransaction',
|
|
6976
6976
|
args
|
|
6977
6977
|
};
|
|
6978
6978
|
});
|