@solana/web3.js 1.18.1 → 1.19.1
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.browser.esm.js +33 -0
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +33 -0
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +27 -0
- package/lib/index.esm.js +33 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +33 -0
- 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/module.flow.js +42 -16
- package/package.json +5 -5
- package/src/connection.ts +59 -0
package/lib/index.iife.js
CHANGED
|
@@ -18552,6 +18552,17 @@ var solanaWeb3 = (function (exports) {
|
|
|
18552
18552
|
memo: nullable(string()),
|
|
18553
18553
|
blockTime: optional(nullable(number()))
|
|
18554
18554
|
})));
|
|
18555
|
+
/**
|
|
18556
|
+
* Expected JSON RPC response for the "getSignaturesForAddress" message
|
|
18557
|
+
*/
|
|
18558
|
+
|
|
18559
|
+
const GetSignaturesForAddressRpcResult = jsonRpcResult(array(type({
|
|
18560
|
+
signature: string(),
|
|
18561
|
+
slot: number(),
|
|
18562
|
+
err: TransactionErrorResult,
|
|
18563
|
+
memo: nullable(string()),
|
|
18564
|
+
blockTime: optional(nullable(number()))
|
|
18565
|
+
})));
|
|
18555
18566
|
/***
|
|
18556
18567
|
* Expected JSON RPC response for the "accountNotification" message
|
|
18557
18568
|
*/
|
|
@@ -20137,6 +20148,28 @@ var solanaWeb3 = (function (exports) {
|
|
|
20137
20148
|
|
|
20138
20149
|
return res.result;
|
|
20139
20150
|
}
|
|
20151
|
+
/**
|
|
20152
|
+
* Returns confirmed signatures for transactions involving an
|
|
20153
|
+
* address backwards in time from the provided signature or most recent confirmed block
|
|
20154
|
+
*
|
|
20155
|
+
*
|
|
20156
|
+
* @param address queried address
|
|
20157
|
+
* @param options
|
|
20158
|
+
*/
|
|
20159
|
+
|
|
20160
|
+
|
|
20161
|
+
async getSignaturesForAddress(address, options, commitment) {
|
|
20162
|
+
const args = this._buildArgsAtLeastConfirmed([address.toBase58()], commitment, undefined, options);
|
|
20163
|
+
|
|
20164
|
+
const unsafeRes = await this._rpcRequest('getSignaturesForAddress', args);
|
|
20165
|
+
const res = create(unsafeRes, GetSignaturesForAddressRpcResult);
|
|
20166
|
+
|
|
20167
|
+
if ('error' in res) {
|
|
20168
|
+
throw new Error('failed to get signatures for address: ' + res.error.message);
|
|
20169
|
+
}
|
|
20170
|
+
|
|
20171
|
+
return res.result;
|
|
20172
|
+
}
|
|
20140
20173
|
/**
|
|
20141
20174
|
* Fetch the contents of a Nonce account from the cluster, return with context
|
|
20142
20175
|
*/
|