• Given a set of input and outputs, compute the fee. Then extract the fee from the change output with the highest value.

    Parameters

    • changeLovelace: bigint

      The available amount of lovelace to be used as change.

    • constraints: SelectionConstraints

      The selection constraints.

    • inputs: Set<Utxo>

      The inputs of the transaction.

    • outputs: Set<TxOut>

      The outputs of the transaction.

    • changeOutputs: TxOut[]

      The list of change outputs.

    • currentFee: bigint

      The current computed fee for this selection.

    Returns Promise<{
        change: TxOut[];
        fee: bigint;
        feeAccountedFor: boolean;
        redeemers?: Redeemer[];
    }>

Generated using TypeDoc