ChangeOutputDiffHandler

scalus.cardano.txbuilder.ChangeOutputDiffHandler
class ChangeOutputDiffHandler(protocolParams: ProtocolParams, changeOutputIdx: Int)

Helper class that creates a diff handler function for an existing change output.

Attributes

Deprecated
[Since version 0.13.0] Use Change.changeOutputDiffHandler instead

Use Change.changeOutputDiffHandler instead

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

Handles the diff by adjusting the change output at the specified index.

Handles the diff by adjusting the change output at the specified index.

Value parameters

diff

The value difference to apply (positive to add, negative to remove)

tx

The transaction to modify

Attributes

Returns

Either a TxBalancingError or the modified transaction