Skip to content

Commit

Permalink
feat: add declaration file to prevent type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCho-H authored Feb 14, 2023
1 parent 1f7cd37 commit 767ae16
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export interface UTXO {
txid: string,
vout: number,
value: number,
nonWitnessUtxo? : Buffer,
witnessUtxo? : {
script: Buffer,
value: number
}
}
export interface Target {
address: string,
value: number
}
export interface SelectedUTXO {
inputs: UTXO[],
outputs: Target[],
fee: number
}
export default function coinSelect(utxos: UTXO[], outputs: Target[], feeRate: number): SelectedUTXO;

0 comments on commit 767ae16

Please sign in to comment.