atlas-cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
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

Eq GYTxBody # 
Instance details

Defined in GeniusYield.Types.TxBody

Conversions

Transaction creation

signGYTxBody :: ToShelleyWitnessSigningKey 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.

signTx :: ToShelleyWitnessSigningKey a => GYTxBody -> [a] -> GYTx #

Deprecated: Use signGYTxBody.

unsignedTx :: GYTxBody -> GYTx #

Create an unsigned transaction from the body.

makeSignedTransaction :: GYTxWitness -> GYTxBody -> GYTx #

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

makeSignedTransaction' :: [KeyWitness ApiEra] -> TxBody ApiEra -> GYTx #

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

appendWitnessGYTx :: GYTxWitness -> GYTx -> GYTx #

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

signGYTx :: ToShelleyWitnessSigningKey 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

txBodyFromHex :: String -> Maybe 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.

txBodyFromHexBS :: ByteString -> Either 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.

txBodyFromCBOR :: ByteString -> Either 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.

txBodyToHex :: GYTxBody -> String #

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.

txBodyToHexBS :: GYTxBody -> ByteString #

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.

txBodyFee :: GYTxBody -> Integer #

Return the fees in lovelace.

txBodyFeeValue :: GYTxBody -> GYValue #

Return the fees as GYValue.

txBodyUTxOs :: GYTxBody -> GYUTxOs #

Return utxos created by tx (body).

txBodyTxIns :: GYTxBody -> [GYTxOutRef] #

Returns the GYTxOutRef consumed by the tx.

txBodyTxInsReference :: GYTxBody -> [GYTxOutRef] #

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

txBodyTxId :: GYTxBody -> GYTxId #

Returns the GYTxId of the given GYTxBody.

txBodyReqSignatories :: GYTxBody -> Set GYPubKeyHash #

Returns the required signatories of the given GYTxBody.

txBodyMintValue :: GYTxBody -> GYValue #

Returns the mint GYValue of the given GYTxBody.

txBodyValidityRange :: GYTxBody -> (Maybe GYSlot, Maybe GYSlot) #

Returns the validity range of the given GYTxBody.

txBodyCollateral :: GYTxBody -> Set GYTxOutRef #

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

txBodyTotalCollateralLovelace :: GYTxBody -> Natural #

Returns the total collateral for the given transaction body.

getTxBody :: GYTx -> GYTxBody #

Returns the GYTxBody of the given GYTx.