Interface CoinSelectorParams

Defines the input parameters for a coin selection algorithm.

interface CoinSelectorParams {
    availableUtxo: UTxO[];
    preSelectedUtxo?: UTxO[];
    targetValue: Value;
}

Properties

availableUtxo: UTxO[]

The pool of available UTxOs from which the algorithm can choose.

preSelectedUtxo?: UTxO[]

An optional set of UTxOs that must be included in the final selection.

targetValue: Value

The target value that the selection must cover.