cardano-sl-0.4.3: Cardano SL main implementation

Safe HaskellNone
LanguageHaskell2010

Pos.Client.Txp.Util

Contents

Description

Pure functions for operations with transactions

Synopsis

Tx creation

makePubKeyTx :: SafeSigner -> TxInputs -> TxOutputs -> TxAux Source #

Makes a transaction which use P2PKH addresses as a source

makeMOfNTx :: Script -> [Maybe SafeSigner] -> TxInputs -> TxOutputs -> TxAux Source #

makeRedemptionTx :: RedeemSecretKey -> TxInputs -> TxOutputs -> TxAux Source #

createTx :: Utxo -> SafeSigner -> TxOutputs -> Either TxError TxAux Source #

Make a multi-transaction using given secret key and info for outputs

createMOfNTx :: Utxo -> [(PublicKey, Maybe SafeSigner)] -> TxOutputs -> Either TxError TxAux Source #

Make a transaction, using M-of-N script as a source

Additional datatypes