Module

Contract.UnbalancedTx

A module for creating off-chain script lookups, and an unbalanced transaction.

#mkUnbalancedTx

mkUnbalancedTx :: ScriptLookups -> TxConstraints -> Contract (Transaction /\ UtxoMap)

As mkUnbalancedTxE, but 'throwing'.

#mkUnbalancedTxE

mkUnbalancedTxE :: ScriptLookups -> TxConstraints -> Contract (Either MkUnbalancedTxError (Transaction /\ UtxoMap))

Create an UnbalancedTx given ScriptLookups and TxConstraints. This should be called in conjuction with balanceTx and signTransaction.

This is a 'non-throwing' variant; if you need the 'throwing' variant, use mkUnbalancedTx instead.

Modules