Module

Ctl.Internal.BalanceTx

#CtlBalancer

#CtlBalancerContext

type CtlBalancerContext = { balancerConstraints :: BalancerConstraints, extraUtxos :: UtxoMap }

Additional context required by the default CTL balancer.

balancerConstraints: A set of rules that guide or modify the behavior of the balancer.

extraUtxos: Extra (non-wallet) utxos to be considered during balancing, typically used to resolve pre-specified inputs of the unbalanced transaction. See getInputVal in Cardano.Transaction.Balancer for further details.

#defaultBalancerWithErr

defaultBalancerWithErr :: CtlBalancer BalanceTxError

Balances an unbalanced transaction using the specified balancer constraints.

Modules