Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Api.TxIn
Description
Transaction bodies
Synopsis
- data TxIn = TxIn TxId TxIx
- newtype TxIx = TxIx Word
- newtype TxId = TxId (Hash StandardCrypto EraIndependentTxBody)
- parseTxId ∷ Parser TxId
- data family AsType t
- toByronTxId ∷ TxId → TxId
- toShelleyTxId ∷ TxId → TxId StandardCrypto
- fromShelleyTxId ∷ TxId StandardCrypto → TxId
- toByronTxIn ∷ TxIn → TxIn
- fromByronTxIn ∷ TxIn → TxIn
- toShelleyTxIn ∷ TxIn → TxIn StandardCrypto
- fromShelleyTxIn ∷ TxIn StandardCrypto → TxIn
- renderTxIn ∷ TxIn → Text
Transaction inputs
Instances
FromJSON TxIn Source # | |
Defined in Cardano.Api.TxIn | |
FromJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn | |
ToJSON TxIn Source # | |
Defined in Cardano.Api.TxIn Methods toEncoding ∷ TxIn → Encoding # toJSONList ∷ [TxIn] → Value # toEncodingList ∷ [TxIn] → Encoding # | |
ToJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn | |
Show TxIn Source # | |
Eq TxIn Source # | |
Ord TxIn Source # | |
Instances
FromJSON TxIx Source # | |
Defined in Cardano.Api.TxIn | |
ToJSON TxIx Source # | |
Defined in Cardano.Api.TxIn Methods toEncoding ∷ TxIx → Encoding # toJSONList ∷ [TxIx] → Value # toEncodingList ∷ [TxIx] → Encoding # | |
Enum TxIx Source # | |
Defined in Cardano.Api.TxIn | |
Show TxIx Source # | |
Eq TxIx Source # | |
Ord TxIx Source # | |
Transaction Ids
Constructors
TxId (Hash StandardCrypto EraIndependentTxBody) |
Instances
FromJSON TxId Source # | |
Defined in Cardano.Api.TxIn | |
FromJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn | |
ToJSON TxId Source # | |
Defined in Cardano.Api.TxIn Methods toEncoding ∷ TxId → Encoding # toJSONList ∷ [TxId] → Value # toEncodingList ∷ [TxId] → Encoding # | |
ToJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn | |
IsString TxId Source # | |
Defined in Cardano.Api.TxIn Methods fromString ∷ String → TxId Source # | |
Show TxId Source # | |
HasTypeProxy TxId Source # | |
SerialiseAsRawBytes TxId Source # | |
Defined in Cardano.Api.TxIn | |
Eq TxId Source # | |
Ord TxId Source # | |
data AsType TxId Source # | |
Defined in Cardano.Api.TxIn |
Data family instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.
Instances
Internal conversion functions
toByronTxId ∷ TxId → TxId Source #
toShelleyTxId ∷ TxId → TxId StandardCrypto Source #
fromShelleyTxId ∷ TxId StandardCrypto → TxId Source #
toByronTxIn ∷ TxIn → TxIn Source #
fromByronTxIn ∷ TxIn → TxIn Source #
toShelleyTxIn ∷ TxIn → TxIn StandardCrypto Source #
This function may overflow on the transaction index. Call sites must ensure that all uses of this function are appropriately guarded.
fromShelleyTxIn ∷ TxIn StandardCrypto → TxIn Source #
renderTxIn ∷ TxIn → Text Source #