• The addUntilReach algorithm is similar to the default coinselect. It continuously adds UTXOs until the combined value surpasses the sum of the targets and fees. This function does not reorder UTXOs before selection. It evaluates whether creating change is feasible, with consideration of whether the change exceeds the dust threshold.

    Notes:

    • This function does not reorder UTXOs prior to selection.
    • UTXOs that do not provide enough value to cover their respective fee contributions are automatically excluded.

    Refer to coinselect for additional details on input parameters and expected returned values.

    Parameters

    Returns undefined | {
        utxos: OutputWithValue[];
        targets: OutputWithValue[];
        fee: number;
        vsize: number;
    }