• Recursively compute the fee and compute change outputs until it finds a set of change outputs that satisfies the fee.

    Parameters

    • inputs: Set<Utxo>

      The inputs of the transaction.

    • outputs: Set<TxOut>

      The outputs of the transaction.

    • changeLovelace: bigint

      The total amount of lovelace in the change.

    • changeAssets: undefined | TokenMap

      The total assets to be distributed as change.

    • constraints: SelectionConstraints

      The selection constraints.

    • getChangeAddresses: (() => Promise<Map<PaymentAddress, number>>)

      A callback that returns a list of addresses and their proportions.

    • fee: bigint

      The current computed fee for this selection.

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

Generated using TypeDoc