Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- signTx :: IsShelleyBasedEra era => SigningKey PaymentKey -> Tx era -> Tx era
- txSpendingUTxO :: UTxO -> Tx Era
- fromLedgerTx :: IsShelleyBasedEra era => Tx (ShelleyLedgerEra era) -> Tx era
- utxoProducedByTx :: Tx Era -> UTxO
- txFee' :: Tx era -> Coin
- toLedgerTx :: Tx era -> Tx (ShelleyLedgerEra era)
- recomputeIntegrityHash :: (AlonzoEraPParams ppera, AlonzoEraTxWits txera, AlonzoEraTxBody txera, EraTx txera) => PParams ppera -> [Language] -> Tx txera -> Tx txera
- convertConwayTx :: Tx Conway -> Tx Babbage
- data Tx era
Extras
signTx :: IsShelleyBasedEra era => SigningKey PaymentKey -> Tx era -> Tx era Source #
Sign transaction using the provided secret key It only works for tx not containing scripts. You can't sign a script utxo with this.
fromLedgerTx :: IsShelleyBasedEra era => Tx (ShelleyLedgerEra era) -> Tx era Source #
utxoProducedByTx :: Tx Era -> UTxO Source #
Get the UTxO that are produced by some transaction. XXX: Defined here to avoid cyclic module dependency
toLedgerTx :: Tx era -> Tx (ShelleyLedgerEra era) Source #
recomputeIntegrityHash :: (AlonzoEraPParams ppera, AlonzoEraTxWits txera, AlonzoEraTxBody txera, EraTx txera) => PParams ppera -> [Language] -> Tx txera -> Tx txera Source #
Compute the integrity hash of a transaction using a list of plutus languages.
convertConwayTx :: Tx Conway -> Tx Babbage Source #
Explicit downgrade from Conway to Babbage era.
XXX: This will invalidate the script integrity hash as datums and redeemers are serialized differently.
XXX: This is not a complete mapping and does silently drop things like protocol updates, certificates and voting procedures.