cardano-api-8.36.1.1: The cardano api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Convenience.Construction

Contents

Description

Convenience transaction construction functions

Synopsis

Documentation

constructBalancedTx Source #

Arguments

:: ShelleyBasedEra era 
-> TxBodyContent BuildTx era 
-> AddressInEra era

Change address

-> Maybe Word

Override key witnesses

-> UTxO era

Just the transaction inputs, not the entire UTxO.

-> LedgerProtocolParameters era 
-> LedgerEpochInfo 
-> SystemStart 
-> Set PoolId

The set of registered stake pools

-> Map StakeCredential Lovelace 
-> Map (Credential DRepRole StandardCrypto) Lovelace 
-> [ShelleyWitnessSigningKey] 
-> Either TxBodyErrorAutoBalance (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