sdk.sortlargestfirst
Home > @blaze-cardano/sdk > sortLargestFirst
sortLargestFirst() function
Sorts a list of UTxOs by highest total value first.
Signature:
declare function sortLargestFirst(inputs: TransactionUnspentOutput[]): TransactionUnspentOutput[];
Parameters
Parameter |
Type |
Description |
---|---|---|
inputs |
A list of UTxOs to sort. |
Returns:
{TransactionUnspentOutput[]}