cardano-api:internal
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 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