Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | Haskell2010 |
GeniusYield.Types.TxBody
Description
Synopsis
- data GYTxBody
- txBodyFromApi ∷ TxBody BabbageEra → GYTxBody
- txBodyToApi ∷ GYTxBody → TxBody BabbageEra
- signTx ∷ ToShelleyWitnessSigningKey a ⇒ GYTxBody → [a] → GYTx
- unsignedTx ∷ GYTxBody → GYTx
- makeSignedTransaction ∷ GYTxWitness → GYTxBody → GYTx
- txBodyFee ∷ GYTxBody → Integer
- txBodyFeeValue ∷ GYTxBody → GYValue
- txBodyUTxOs ∷ GYTxBody → GYUTxOs
- txBodyTxIns ∷ GYTxBody → [GYTxOutRef]
- txBodyTxInsReference ∷ GYTxBody → [GYTxOutRef]
- txBodyTxId ∷ GYTxBody → GYTxId
- txBodyToApiTxBodyContent ∷ GYTxBody → TxBodyContent ViewTx BabbageEra
- txBodyMintValue ∷ GYTxBody → GYValue
- txBodyValidityRange ∷ GYTxBody → (Maybe GYSlot, Maybe GYSlot)
- txBodyCollateral ∷ GYTxBody → Set GYTxOutRef
- txBodyCollateralReturnOutput ∷ GYTxBody → TxReturnCollateral CtxTx BabbageEra
- txBodyCollateralReturnOutputValue ∷ GYTxBody → GYValue
- txBodyTotalCollateralLovelace ∷ GYTxBody → Natural
- getTxBody ∷ GYTx → GYTxBody
Transaction body
Transaction body: the part which is then signed.
Conversions
txBodyFromApi ∷ TxBody BabbageEra → GYTxBody #
txBodyToApi ∷ GYTxBody → TxBody BabbageEra #
Transaction creation
signTx ∷ ToShelleyWitnessSigningKey a ⇒ GYTxBody → [a] → GYTx #
Sign a transaction body with (potentially) multiple keys.
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.
Functions
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.
txBodyToApiTxBodyContent ∷ GYTxBody → TxBodyContent ViewTx BabbageEra #
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
.
txBodyCollateralReturnOutput ∷ GYTxBody → TxReturnCollateral CtxTx BabbageEra #
txBodyTotalCollateralLovelace ∷ GYTxBody → Natural #
Returns the total collateral for the given transaction body.