| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Cardano.CLI.Compatible.Transaction.TxOut
Synopsis
- mkTxOut :: ShelleyBasedEra era -> AddressInEra era -> Value -> TxOutDatumAnyEra -> ReferenceScriptAnyEra -> CIO e (TxOut (ShelleyLedgerEra era), Map DataHash (Data (ShelleyLedgerEra era)))
- toTxOutInAnyEra :: ShelleyBasedEra era -> TxOutAnyEra -> CIO e (TxOut (ShelleyLedgerEra era), Map DataHash (Data (ShelleyLedgerEra era)))
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.
toTxOutInAnyEra :: ShelleyBasedEra era -> TxOutAnyEra -> CIO e (TxOut (ShelleyLedgerEra era), Map DataHash (Data (ShelleyLedgerEra era))) Source #