Skip to main content

selectLargestFirst

Selects UTxOs from a list by iterating through the tokens in the given Value and picking the UTxOs containing the largest corresponding amount first.

export function selectLargestFirst(props: {allowSelectingUninvolvedAssets?: boolean}): (
  utxos: TxInput<SC>[],
  amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]

Arguments

NameTypeDescription
props{allowSelectingUninvolvedAssets?: boolean}

Return value

(
  utxos: TxInput<SC>[],
  amount: Value
) => [TxInput<SC>[], TxInput<SC>[]]