atlas-cardano-0.6.2: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.Types.TxBody

Description

 
Synopsis

Transaction body

data GYTxBody #

Transaction body: the part which is then signed.

Instances

Instances details
Show GYTxBody # 
Instance details

Defined in GeniusYield.Types.TxBody

Methods

showsPrecIntGYTxBodyShowS #

showGYTxBodyString #

showList ∷ [GYTxBody] → ShowS #

Conversions

Transaction creation

signGYTxBodyToShelleyWitnessSigningKey a ⇒ GYTxBody → [a] → GYTx #

Sign a transaction body with (potentially) multiple keys.

signGYTxBody'GYTxBody → [GYSomeSigningKey] → GYTx #

Sign a transaction body with (potentially) multiple keys of potentially different nature.

signTxToShelleyWitnessSigningKey a ⇒ GYTxBody → [a] → GYTx #

Deprecated: Use signGYTxBody.

unsignedTxGYTxBodyGYTx #

Create an unsigned transaction from the body.

makeSignedTransactionGYTxWitnessGYTxBodyGYTx #

Make a signed transaction given the transaction body & list of key witnesses, represented in GYTxWitness.

makeSignedTransaction' ∷ [KeyWitness ApiEra] → TxBody ApiEraGYTx #

Make a signed transaction given the transaction body & list of key witnesses.

appendWitnessGYTxGYTxWitnessGYTxGYTx #

Add a key witness(s) to a transaction, represented in GYTxWitness, which might already have previous key witnesses.

signGYTxToShelleyWitnessSigningKey a ⇒ GYTx → [a] → GYTx #

Sign a transaction with (potentially) multiple keys and add your witness(s) among previous key witnesses, if any.

signGYTx'GYTx → [GYSomeSigningKey] → GYTx #

Sign a transaction with (potentially) multiple keys of potentially different nature and add your witness(s) among previous key witnesses, if any.

Functions

txBodyFromHexStringMaybe GYTxBody #

Get GYTxBody from it's hex CBOR encoding given as String. Note that the given serialized input is not of form transaction_body as defined in CDDL but rather it's the serialisation of Cardano API library's TxBody type.

txBodyFromHexBSByteStringEither String GYTxBody #

Get GYTxBody from it's hex CBOR encoding given as ByteString. Note that the given serialized input is not of form transaction_body as defined in CDDL but rather it's the serialisation of Cardano API library's TxBody type.

txBodyFromCBORByteStringEither String GYTxBody #

Get GYTxBody from it's CBOR encoding. Note that the given serialized input is not of form transaction_body as defined in CDDL but rather it's the serialisation of Cardano API library's TxBody type.

txBodyToHexGYTxBodyString #

Serialise GYTxBody to get hex encoded CBOR string represented as String. Obtained result does not correspond to transaction_body as defined in CDDL but rather it's the serialisation of Cardano API library's TxBody type.

txBodyToHexBSGYTxBodyByteString #

Serialise GYTxBody to get hex encoded CBOR string represented as ByteString. Obtained result does not correspond to transaction_body as defined in CDDL but rather it's the serialisation of Cardano API library's TxBody type.

txBodyFeeGYTxBodyInteger #

Return the fees in lovelace.

txBodyFeeValueGYTxBodyGYValue #

Return the fees as GYValue.

txBodyUTxOsGYTxBodyGYUTxOs #

Return utxos created by tx (body).

txBodyTxInsGYTxBody → [GYTxOutRef] #

Returns the GYTxOutRef consumed by the tx.

txBodyTxInsReferenceGYTxBody → [GYTxOutRef] #

Returns the GYTxOutRef for the reference inputs present in the tx.

txBodyTxIdGYTxBodyGYTxId #

Returns the GYTxId of the given GYTxBody.

txBodyReqSignatoriesGYTxBodySet GYPubKeyHash #

Returns the required signatories of the given GYTxBody.

txBodyMintValueGYTxBodyGYValue #

Returns the mint GYValue of the given GYTxBody.

txBodyValidityRangeGYTxBody → (Maybe GYSlot, Maybe GYSlot) #

Returns the validity range of the given GYTxBody.

txBodyCollateralGYTxBodySet GYTxOutRef #

Returns the set of GYTxOutRef used as collateral in the given GYTxBody.

txBodyTotalCollateralLovelaceGYTxBodyNatural #

Returns the total collateral for the given transaction body.

getTxBodyGYTxGYTxBody #

Returns the GYTxBody of the given GYTx.