Safe Haskell | None |
---|---|
Language | Haskell2010 |
Convenience transaction construction functions
Synopsis
- constructBalancedTx :: ShelleyBasedEra era -> TxBodyContent BuildTx era -> AddressInEra era -> Maybe Word -> UTxO era -> LedgerProtocolParameters era -> LedgerEpochInfo -> SystemStart -> Set PoolId -> Map StakeCredential Coin -> Map (Credential 'DRepRole StandardCrypto) Coin -> [ShelleyWitnessSigningKey] -> Either (TxBodyErrorAutoBalance era) (Tx era)
- data TxInsExistError
- = TxInsDoNotExist [TxIn]
- | EmptyUTxO
- newtype ScriptLockedTxInsError = ScriptLockedTxIns [TxIn]
- notScriptLockedTxIns :: [TxIn] -> UTxO era -> Either ScriptLockedTxInsError ()
- renderNotScriptLockedTxInsError :: ScriptLockedTxInsError -> Text
- renderTxInsExistError :: TxInsExistError -> Text
- txInsExistInUTxO :: [TxIn] -> UTxO era -> Either TxInsExistError ()
Documentation
:: ShelleyBasedEra era | |
-> TxBodyContent BuildTx era | |
-> AddressInEra era | Change address |
-> Maybe Word | Override key witnesses |
-> UTxO era | Just the transaction inputs, not the entire |
-> LedgerProtocolParameters era | |
-> LedgerEpochInfo | |
-> SystemStart | |
-> Set PoolId | The set of registered stake pools |
-> Map StakeCredential Coin | |
-> Map (Credential 'DRepRole StandardCrypto) Coin | |
-> [ShelleyWitnessSigningKey] | |
-> Either (TxBodyErrorAutoBalance era) (Tx era) |
Construct a balanced transaction. See Cardano.Api.Convenience.Query.queryStateForBalancedTx for a convenient way of querying the node to get the required arguements for constructBalancedTx.
Misc
newtype ScriptLockedTxInsError Source #
notScriptLockedTxIns :: [TxIn] -> UTxO era -> Either ScriptLockedTxInsError () Source #
txInsExistInUTxO :: [TxIn] -> UTxO era -> Either TxInsExistError () Source #