UNPKG

@bitcoinerlab/coinselect

Version:

A TypeScript library for Bitcoin transaction management, based on Bitcoin Descriptors for defining inputs and outputs. It facilitates optimal UTXO selection and transaction size calculation.

9 lines (8 loc) 476 B
import { OutputWithValue } from './index'; export declare function validateOutputWithValues(outputAndValues: Array<OutputWithValue>): void; export declare function validateFeeRate(feeRate: number): void; export declare function validateDust(targets: Array<OutputWithValue>, dustRelayFeeRate?: number): void; export declare function validatedFeeAndVsize(utxos: Array<OutputWithValue>, targets: Array<OutputWithValue>, feeRate: number): { fee: number; vsize: number; };