@solana/web3.js 1.48.0 → 1.49.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/lib/index.browser.cjs.js +18 -4
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +18 -4
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +18 -4
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +20 -6
- package/lib/index.esm.js +18 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +18 -4
- 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 +18 -4
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +30 -4
package/lib/index.iife.js
CHANGED
|
@@ -21836,8 +21836,15 @@ var solanaWeb3 = (function (exports) {
|
|
|
21836
21836
|
*/
|
|
21837
21837
|
|
|
21838
21838
|
|
|
21839
|
-
async getBlock(slot,
|
|
21840
|
-
const
|
|
21839
|
+
async getBlock(slot, rawConfig) {
|
|
21840
|
+
const {
|
|
21841
|
+
commitment,
|
|
21842
|
+
config
|
|
21843
|
+
} = extractCommitmentFromConfig(rawConfig);
|
|
21844
|
+
|
|
21845
|
+
const args = this._buildArgsAtLeastConfirmed([slot], commitment, undefined
|
|
21846
|
+
/* encoding */
|
|
21847
|
+
, config);
|
|
21841
21848
|
|
|
21842
21849
|
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
21843
21850
|
const res = create(unsafeRes, GetBlockRpcResult);
|
|
@@ -21923,8 +21930,15 @@ var solanaWeb3 = (function (exports) {
|
|
|
21923
21930
|
*/
|
|
21924
21931
|
|
|
21925
21932
|
|
|
21926
|
-
async getTransaction(signature,
|
|
21927
|
-
const
|
|
21933
|
+
async getTransaction(signature, rawConfig) {
|
|
21934
|
+
const {
|
|
21935
|
+
commitment,
|
|
21936
|
+
config
|
|
21937
|
+
} = extractCommitmentFromConfig(rawConfig);
|
|
21938
|
+
|
|
21939
|
+
const args = this._buildArgsAtLeastConfirmed([signature], commitment, undefined
|
|
21940
|
+
/* encoding */
|
|
21941
|
+
, config);
|
|
21928
21942
|
|
|
21929
21943
|
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
21930
21944
|
const res = create(unsafeRes, GetTransactionRpcResult);
|