LowLevelTxBuilder

scalus.cardano.txbuilder.LowLevelTxBuilder

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def balanceFeeAndChange(initial: Transaction, changeOutputIdx: Int, protocolParams: ProtocolParams, resolvedUtxo: Utxos, evaluator: PlutusScriptEvaluator): Either[TxBalancingError, Transaction]

Balances the transaction using a diff handler to adjust the transaction.

Balances the transaction using a diff handler to adjust the transaction.

Invariants:

  • only ADA is adjusted, native tokens must be balanced beforehand
  • fees never go below the initial fee

Attributes

def balanceFeeAndChange(initial: Transaction, diffHandler: (Long, Transaction) => Either[TxBalancingError, Transaction], protocolParams: ProtocolParams, resolvedUtxo: Utxos, evaluator: PlutusScriptEvaluator): Either[TxBalancingError, Transaction]

Balances the transaction using a diff handler to adjust the transaction.

Balances the transaction using a diff handler to adjust the transaction.

Invariants:

  • only ADA is adjusted, native tokens must be balanced beforehand
  • fees never go below the initial fee

Attributes