Skip to main content
Version: Next

tx.coinselectionfunc

Home > @blaze-cardano/tx > CoinSelectionFunc

CoinSelectionFunc type

The coin selection function to choose which inputs to use for the transaction.

Signature:

export type CoinSelectionFunc = (inputs: TransactionUnspentOutput[], collectedAssets: Value, preliminaryFee?: number, externalAssets?: Value, coinsPerUtxoByte?: number) => SelectionResult;

References: SelectionResult