TransactionEditor

scalus.cardano.txbuilder.TransactionEditor

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Edit a transaction, ensuring proper handling of redeemers.

Edit a transaction, ensuring proper handling of redeemers.

You can insert or delete inputs, certificates, mints or reward withdrawals: regardless of the changes, the redeemers will be re-indexed to point to the correct transaction components.

  • If you add any new redeemers, and they point to the transaction components correctly, they are guaranteed to have correct indices in the output tx.
  • If some component that has a redeemer pointing to it is removed, the corresponding redeemer will be removed as well from the resulting transaction.

Value parameters

f

endomorphism

tx

source transaction

Attributes

Returns

target transaction

Like editTransaction, but fails if:

Like editTransaction, but fails if:

  • the input transaction's redeemers have invalid index pointers
  • the resulting transaction's redeemers have invalid index pointers

The first problematic redeemer will be returned as an error value.

Value parameters

f

endomorphism

tx

source transaction

Attributes

Returns

target transaction