- Preparing search index...
- The search index is not available
cardano-sdk
Function adjustOutputsForFee
- adjustOutputsForFee(changeLovelace: bigint, constraints: SelectionConstraints, inputs: Set<Utxo>, outputs: Set<TxOut>, changeOutputs: TxOut[], currentFee: bigint): Promise<{
change: TxOut[];
fee: bigint;
feeAccountedFor: boolean;
redeemers?: Redeemer[];
}>
-
Parameters
-
changeLovelace: bigint
-
-
inputs: Set<Utxo>
-
outputs: Set<TxOut>
-
changeOutputs: TxOut[]
-
currentFee: bigint
Returns Promise<{
change: TxOut[];
fee: bigint;
feeAccountedFor: boolean;
redeemers?: Redeemer[];
}>
Given a set of input and outputs, compute the fee. Then extract the fee from the change output with the highest value.