@xchainjs/xchain-utxo-providers 0.2.5 → 0.2.7
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
CHANGED
|
@@ -758,8 +758,8 @@ class HaskoinProvider {
|
|
|
758
758
|
* @param {string} hash The transaction hash.
|
|
759
759
|
* @returns {Transactions}
|
|
760
760
|
*/
|
|
761
|
-
const getTx = ({ apiKey, baseUrl, network, hash }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
762
|
-
const params = { includeHex: 'true' };
|
|
761
|
+
const getTx = ({ apiKey, baseUrl, network, hash, limit = 20 }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
762
|
+
const params = { includeHex: 'true', limit: limit.toString() };
|
|
763
763
|
if (apiKey)
|
|
764
764
|
params['token'] = apiKey;
|
|
765
765
|
const url = `${baseUrl}/${network}/txs/${hash}`;
|
|
@@ -1019,6 +1019,7 @@ class BlockcypherProvider {
|
|
|
1019
1019
|
baseUrl: this.baseUrl,
|
|
1020
1020
|
network: this.blockcypherNetwork,
|
|
1021
1021
|
hash,
|
|
1022
|
+
limit: 50, // Temporal approach
|
|
1022
1023
|
});
|
|
1023
1024
|
return rawTx;
|
|
1024
1025
|
}));
|
package/lib/index.js
CHANGED
|
@@ -767,8 +767,8 @@ class HaskoinProvider {
|
|
|
767
767
|
* @param {string} hash The transaction hash.
|
|
768
768
|
* @returns {Transactions}
|
|
769
769
|
*/
|
|
770
|
-
const getTx = ({ apiKey, baseUrl, network, hash }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
771
|
-
const params = { includeHex: 'true' };
|
|
770
|
+
const getTx = ({ apiKey, baseUrl, network, hash, limit = 20 }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
771
|
+
const params = { includeHex: 'true', limit: limit.toString() };
|
|
772
772
|
if (apiKey)
|
|
773
773
|
params['token'] = apiKey;
|
|
774
774
|
const url = `${baseUrl}/${network}/txs/${hash}`;
|
|
@@ -1028,6 +1028,7 @@ class BlockcypherProvider {
|
|
|
1028
1028
|
baseUrl: this.baseUrl,
|
|
1029
1029
|
network: this.blockcypherNetwork,
|
|
1030
1030
|
hash,
|
|
1031
|
+
limit: 50, // Temporal approach
|
|
1031
1032
|
});
|
|
1032
1033
|
return rawTx;
|
|
1033
1034
|
}));
|
|
@@ -10,7 +10,7 @@ import { BalanceParams, BlockcypherNetwork, GetTxsDTO, Transaction, TxConfirmedS
|
|
|
10
10
|
* @param {string} hash The transaction hash.
|
|
11
11
|
* @returns {Transactions}
|
|
12
12
|
*/
|
|
13
|
-
export declare const getTx: ({ apiKey, baseUrl, network, hash }: TxHashParams) => Promise<Transaction>;
|
|
13
|
+
export declare const getTx: ({ apiKey, baseUrl, network, hash, limit }: TxHashParams) => Promise<Transaction>;
|
|
14
14
|
/**
|
|
15
15
|
* Get transactions
|
|
16
16
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-utxo-providers",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.esm.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@xchainjs/xchain-client": "^0.15.
|
|
30
|
+
"@xchainjs/xchain-client": "^0.15.3",
|
|
31
31
|
"@xchainjs/xchain-crypto": "^0.3.0",
|
|
32
32
|
"@xchainjs/xchain-util": "^0.13.1",
|
|
33
33
|
"axios": "^1.3.6"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@xchainjs/xchain-client": "^0.15.
|
|
36
|
+
"@xchainjs/xchain-client": "^0.15.3",
|
|
37
37
|
"@xchainjs/xchain-crypto": "^0.3.0",
|
|
38
38
|
"@xchainjs/xchain-util": "^0.13.1",
|
|
39
39
|
"axios": "^1.3.6"
|
|
@@ -41,4 +41,4 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@supercharge/promise-pool": "^2.4.0"
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
}
|