We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f7cd37 + 683e6df commit 5d04021Copy full SHA for 5d04021
index.d.ts
@@ -0,0 +1,20 @@
1
+export interface UTXO {
2
+ txid: string | Buffer,
3
+ vout: number,
4
+ value: number,
5
+ nonWitnessUtxo? : Buffer,
6
+ witnessUtxo? : {
7
+ script: Buffer,
8
+ value: number
9
+ }
10
+}
11
+export interface Target {
12
+ address: string,
13
+ value?: number
14
15
+export interface SelectedUTXO {
16
+ inputs?: UTXO[],
17
+ outputs?: Target[],
18
+ fee: number
19
20
+export default function coinSelect(utxos: UTXO[], outputs: Target[], feeRate: number): SelectedUTXO;
package.json
@@ -31,6 +31,7 @@
31
"utils.js"
32
],
33
"main": "index.js",
34
+ "types": "index.d.ts",
35
"repository": {
36
"type": "git",
37
"url": "https://github.com/bitcoinjs/coinselect.git"
0 commit comments