cardano-api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Compatible.Tx

Description

This module provides minimal transaction-building support across all Shelley-based eras, aimed at internal testing (e.g. tx-generator). The experimental API only covers the current and next era.

Synopsis

Documentation

data AnyVote era where Source #

Constructors

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

data CompatibleTxBodyContent era Source #

The content of a transaction createCompatibleTx builds.

Constructors

CompatibleTxBodyContent 

Fields

data CompatibleTxError Source #

Errors that can occur while assembling a Tx with createCompatibleTx.

Constructors

CompatibleTxMissingScriptIntegrityPParams

Plutus script witnesses are present, but compatibleTxProtocolParams is Nothing, so the ledger's required script integrity hash cannot be computed.

defaultCompatibleTxBodyContent :: ShelleyBasedEra era -> CompatibleTxBodyContent era Source #

CompatibleTxBodyContent with everything empty: no inputs, outputs, certificates, votes, protocol update, collateral, protocol parameters, metadata or validity upper bound.

The ShelleyBasedEra witness is only needed to build the default NoPParamsUpdate.

createCompatibleTx :: ShelleyBasedEra era -> CompatibleTxBodyContent era -> Either CompatibleTxError (Tx era) Source #

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