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