cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Compatible.Tx

Description

This module provides a way to construct a simple transaction over all eras. It is exposed for testing purposes only.

Synopsis

Documentation

data AnyVote era where Source #

Constructors

VotingProcedures :: forall era. ConwayEraOnwards era -> TxVotingProcedures (ShelleyLedgerEra era) -> AnyVote era 
NoVotes :: forall era. AnyVote era 

createCompatibleTx Source #

Arguments

:: ShelleyBasedEra era 
-> [TxIn] 
-> [TxOut (ShelleyLedgerEra era)] 
-> Map DataHash (Data (ShelleyLedgerEra era))

Supplemental datums to include in the witness set. Use mempty if none are required. The legacy 'TxOut CtxTx era' bundled supplemental datums inside outputs; TxOut only carries the datum hash, so callers thread the full datum bodies in here explicitly.

-> Lovelace

Fee

-> AnyProtocolUpdate era 
-> AnyVote era 
-> TxCertificates (ShelleyLedgerEra era) 
-> Either ProtocolParametersConversionError (Tx era) 

Create a transaction in any shelley based era

addWitnesses Source #

Arguments

:: [KeyWitness era] 
-> Tx era 
-> Tx era

a signed transaction

Add provided witnesses to the transaction