Module

Contract.UnbalancedTx

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

#mkUnbalancedTx

mkUnbalancedTx :: ScriptLookups -> TxConstraints -> Contract UnbalancedTx

As mkUnbalancedTxE, but 'throwing'.

#mkUnbalancedTxE

mkUnbalancedTxE :: ScriptLookups -> TxConstraints -> Contract (Either MkUnbalancedTxError UnbalancedTx)

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.

Re-exports from Ctl.Internal.ProcessConstraints.Error

#explainMkUnbalancedTxError

explainMkUnbalancedTxError :: MkUnbalancedTxError -> String

Helper to pretty-print MkUnbalancedTxErrors.

Re-exports from Ctl.Internal.ProcessConstraints.UnbalancedTx

#UnbalancedTx

newtype UnbalancedTx

A newtype for the unbalanced transaction after creating one with datums and redeemers not attached.

Constructors

Instances

Modules