The main coin selection function executes wideSelection and then deepSelection, combining the two. It greedily selects the smallest set of utxos, and then any extra is done with the depth search.

  • Parameters

    • inputs: TransactionUnspentOutput[]

      The available inputs for the selection.

    • collectedAssets: Value
    • OptionalpreliminaryFee: number
    • OptionalexternalAssets: Value
    • OptionalcoinsPerUtxoByte: number

    Returns SelectionResult

    The result of the coin selection operation.