@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) • 526 B
TypeScript
import { OutputWithValue } from './index';
export declare function validateOutputWithValues(outputAndValues: Array<OutputWithValue>): void;
export declare function validateFeeRate(feeRate: number, minimumFeeRate?: number): void;
export declare function validateDust(targets: Array<OutputWithValue>, dustRelayFeeRate?: number): void;
export declare function validatedFeeAndVsize(utxos: Array<OutputWithValue>, targets: Array<OutputWithValue>, feeRate: number, minimumFeeRate?: number): {
fee: bigint;
vsize: number;
};