Safe Haskell | None |
---|---|
Language | Haskell2010 |
Cardano.CLI.Byron.Tx
Synopsis
- data ByronTxError
- newtype TxFile = TxFile FilePath
- newtype NewTxFile = NewTxFile FilePath
- prettyAddress :: Address -> Text
- readByronTx :: TxFile -> ExceptT ByronTxError IO (GenTx ByronBlock)
- normalByronTxToGenTx :: ATxAux ByteString -> GenTx ByronBlock
- txSpendGenesisUTxOByronPBFT :: Config -> NetworkId -> SigningKey -> Address -> NonEmpty TxOut -> ATxAux ByteString
- txSpendUTxOByronPBFT :: NetworkId -> SigningKey -> NonEmpty TxIn -> NonEmpty TxOut -> ATxAux ByteString
- nodeSubmitTx :: NetworkId -> GenTx ByronBlock -> ExceptT ByronTxError IO ()
- renderByronTxError :: ByronTxError -> Text
- fromCborTxAux :: ByteString -> Either DecoderError (ATxAux ByteString)
- toCborTxAux :: ATxAux ByteString -> ByteString
Documentation
data ByronTxError Source #
Constructors
TxDeserialisationFailed !FilePath !DecoderError | |
EnvSocketError !EnvSocketError |
Instances
Show ByronTxError Source # | |
Defined in Cardano.CLI.Byron.Tx Methods showsPrec :: Int -> ByronTxError -> ShowS # show :: ByronTxError -> String # showList :: [ByronTxError] -> ShowS # |
Instances
Eq NewTxFile Source # | |
Ord NewTxFile Source # | |
Show NewTxFile Source # | |
IsString NewTxFile Source # | |
Defined in Cardano.CLI.Byron.Tx Methods fromString :: String -> NewTxFile # |
prettyAddress :: Address -> Text Source #
Pretty-print an address in its Base58 form, and also its full structure.
readByronTx :: TxFile -> ExceptT ByronTxError IO (GenTx ByronBlock) Source #
normalByronTxToGenTx :: ATxAux ByteString -> GenTx ByronBlock Source #
The GenTx
is all the kinds of transactions that can be submitted
and "normal" Byron transactions are just one of the kinds.
txSpendGenesisUTxOByronPBFT :: Config -> NetworkId -> SigningKey -> Address -> NonEmpty TxOut -> ATxAux ByteString Source #
Generate a transaction spending genesis UTxO at a given address, to given outputs, signed by the given key.
txSpendUTxOByronPBFT :: NetworkId -> SigningKey -> NonEmpty TxIn -> NonEmpty TxOut -> ATxAux ByteString Source #
Generate a transaction from given Tx inputs to outputs, signed by the given key.
nodeSubmitTx :: NetworkId -> GenTx ByronBlock -> ExceptT ByronTxError IO () Source #
Submit a transaction to a node specified by topology info.
toCborTxAux :: ATxAux ByteString -> ByteString Source #