Safe Haskell | None |
---|---|
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
Eq TxIn Source # | |
Ord TxIn Source # | |
Show TxIn Source # | |
FromJSON TxIn Source # | |
Defined in Cardano.Api.TxIn Methods parseJSON :: Value -> Parser TxIn # parseJSONList :: Value -> Parser [TxIn] # omittedField :: Maybe TxIn # | |
ToJSON TxIn Source # | |
Defined in Cardano.Api.TxIn | |
ToJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn | |
Pretty TxIn Source # | |
Defined in Cardano.Api.TxIn | |
FromJSONKey TxIn Source # | |
Defined in Cardano.Api.TxIn |
Instances
Enum TxIx Source # | |
Eq TxIx Source # | |
Ord TxIx Source # | |
Show TxIx Source # | |
FromJSON TxIx Source # | |
Defined in Cardano.Api.TxIn Methods parseJSON :: Value -> Parser TxIx # parseJSONList :: Value -> Parser [TxIx] # omittedField :: Maybe TxIx # | |
ToJSON TxIx Source # | |
Defined in Cardano.Api.TxIn |
Transaction Ids
Constructors
TxId (Hash StandardCrypto EraIndependentTxBody) |
Instances
Eq TxId Source # | |
Ord TxId Source # | |
Show TxId Source # | |
IsString TxId Source # | |
Defined in Cardano.Api.TxIn Methods fromString :: String -> TxId Source # | |
FromJSON TxId Source # | |
Defined in Cardano.Api.TxIn Methods parseJSON :: Value -> Parser TxId # parseJSONList :: Value -> Parser [TxId] # omittedField :: Maybe TxId # | |
ToJSON TxId Source # | |
Defined in Cardano.Api.TxIn | |
ToJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn | |
HasTypeProxy TxId Source # | |
FromJSONKey TxId Source # | |
Defined in Cardano.Api.TxIn | |
SerialiseAsRawBytes TxId Source # | |
Defined in Cardano.Api.TxIn Methods serialiseToRawBytes :: TxId -> ByteString Source # deserialiseFromRawBytes :: AsType TxId -> ByteString -> Either SerialiseAsRawBytesError 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 #