Skip to content
docs

selectCoins

selectCoins(o): CoinSelection

Defined in: wallet-btc/src/coinselect.ts:86

Pick UTXOs to fund the targets at feeRate (sat/vB): change goes back when it is above dust, otherwise it joins the fee.

CoinSelectOptions

CoinSelection

InsufficientFundsError (core) when the UTXOs cannot cover targets plus fee, TooManyInputsError above maxInputs, Error for a fee rate below 1 sat/vB.