selectSmallestFirst
Selects UTxOs from a list by iterating through the tokens in the given Value
and picking the UTxOs containing the smallest corresponding amount first.
This method can be used to eliminate dust UTxOs from a wallet.
export function selectSmallestFirst(props: {allowSelectingUninvolvedAssets?: boolean}): (
utxos: TxInput<SC>[],
amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]
Arguments
Name | Type | Description |
---|---|---|
props | {allowSelectingUninvolvedAssets?: boolean} |
Return value
(
utxos: TxInput<SC>[],
amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]