selectSmallestFirst
export function selectSmallestFirst(props: {allowSelectingUninvolvedAssets??: boolean}): <SC extends SpendingCredential = SpendingCredential>(
utxos: TxInput<SC>[],
amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]
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.
Arguments
1. props
props: {allowSelectingUninvolvedAssets??: boolean}
Returns
<SC extends SpendingCredential = SpendingCredential>(
utxos: TxInput<SC>[],
amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]