UNPKG

bitcoin-utxo-select

Version:

Bitcoin utxo selections

25 lines (24 loc) 519 B
export interface UTXO { txid: string | Uint8Array; vout: number; value: number; nonWitnessUtxo?: Uint8Array; witnessUtxo?: { script: Uint8Array; value: number; }; redeemScript?: Uint8Array; witnessScript?: Uint8Array; isTaproot?: boolean; taprootWitness?: Uint8Array[]; } export interface Target { address?: string; script?: Uint8Array; value?: number; } export interface selectedUTXO { inputs?: UTXO[]; outputs?: Target[]; fee: number; }