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.

15 lines (14 loc) 544 B
export declare const DUST_RELAY_FEE_RATE = 3; export declare const MAX_FEE_RATE = 10000; export declare const MIN_FEE_RATE = 0.1; import type { OutputInstance } from '@bitcoinerlab/descriptors'; export { coinselect } from './coinselect'; export { vsize } from './vsize'; export { dustThreshold } from './dust'; export { maxFunds } from './algos/maxFunds'; export { addUntilReach } from './algos/addUntilReach'; export { avoidChange } from './algos/avoidChange'; export type OutputWithValue = { output: OutputInstance; value: bigint; };