@xchainjs/xchain-utxo-providers 2.0.9 → 2.0.11
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.esm.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/lib/index.esm.js
CHANGED
|
@@ -468,7 +468,7 @@ const getUnspentTxs = (_a) => __awaiter(void 0, [_a], void 0, function* ({ hasko
|
|
|
468
468
|
// Get transaction count for a given address.
|
|
469
469
|
const account = yield getAccount({ haskoinUrl, network, address });
|
|
470
470
|
// Set limit to the transaction count to be all the utxos.
|
|
471
|
-
const result = (yield axios.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit
|
|
471
|
+
const result = (yield axios.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit=${account === null || account === void 0 ? void 0 : account.utxo}`)).data;
|
|
472
472
|
if (!result || isErrorResponse(result))
|
|
473
473
|
throw new Error('failed to query unspent transactions');
|
|
474
474
|
return result;
|
|
@@ -575,7 +575,7 @@ const getUnspentTransactions = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
575
575
|
// Get transaction count for a given address.
|
|
576
576
|
const account = yield getAccount({ haskoinUrl, network, address });
|
|
577
577
|
// Set limit to the transaction count to be all the utxos.
|
|
578
|
-
const result = (yield axios.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit
|
|
578
|
+
const result = (yield axios.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit=${account === null || account === void 0 ? void 0 : account.utxo}`)).data;
|
|
579
579
|
if (!result || isErrorResponse(result))
|
|
580
580
|
throw new Error('failed to query unspent transactions');
|
|
581
581
|
return result;
|
package/lib/index.js
CHANGED
|
@@ -475,7 +475,7 @@ const getUnspentTxs = (_a) => __awaiter(void 0, [_a], void 0, function* ({ hasko
|
|
|
475
475
|
// Get transaction count for a given address.
|
|
476
476
|
const account = yield getAccount({ haskoinUrl, network, address });
|
|
477
477
|
// Set limit to the transaction count to be all the utxos.
|
|
478
|
-
const result = (yield axios__default.default.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit
|
|
478
|
+
const result = (yield axios__default.default.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit=${account === null || account === void 0 ? void 0 : account.utxo}`)).data;
|
|
479
479
|
if (!result || isErrorResponse(result))
|
|
480
480
|
throw new Error('failed to query unspent transactions');
|
|
481
481
|
return result;
|
|
@@ -582,7 +582,7 @@ const getUnspentTransactions = (_a) => __awaiter(void 0, [_a], void 0, function*
|
|
|
582
582
|
// Get transaction count for a given address.
|
|
583
583
|
const account = yield getAccount({ haskoinUrl, network, address });
|
|
584
584
|
// Set limit to the transaction count to be all the utxos.
|
|
585
|
-
const result = (yield axios__default.default.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit
|
|
585
|
+
const result = (yield axios__default.default.get(`${haskoinUrl}/${network}/address/${address}/unspent?limit=${account === null || account === void 0 ? void 0 : account.utxo}`)).data;
|
|
586
586
|
if (!result || isErrorResponse(result))
|
|
587
587
|
throw new Error('failed to query unspent transactions');
|
|
588
588
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-utxo-providers",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@supercharge/promise-pool": "2.4.0",
|
|
32
|
-
"@xchainjs/xchain-client": "2.0.
|
|
32
|
+
"@xchainjs/xchain-client": "2.0.10",
|
|
33
33
|
"@xchainjs/xchain-util": "2.0.5",
|
|
34
|
-
"axios": "1.
|
|
34
|
+
"axios": "1.13.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"axios-mock-adapter": "^2.1.0"
|