cardano-cli
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.Compatible.Transaction.TxOut

Synopsis

Documentation

mkTxOut :: ShelleyBasedEra era -> AddressInEra era -> Value -> TxOutDatumAnyEra -> ReferenceScriptAnyEra -> CIO e (TxOut (ShelleyLedgerEra era), Map DataHash (Data (ShelleyLedgerEra era))) Source #

Build an output for a transaction body. Produces the experimental TxOut plus any supplemental datum bodies that the caller-supplied datum carries. The legacy 'TxOut CtxTx era' bundled supplemental datums inside outputs; TxOut only carries the datum hash, so callers thread the full datum bodies in separately (e.g. via createCompatibleTx).

The legacy 'TxOut CtxTx era' is used internally as a stepping stone to reuse the api's toShelleyTxOutAny field-level conversion logic; it is not exposed.