| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V4.Tx
Contents
Synopsis
- newtype TxId = TxId {}
- data TxOutRef = TxOutRef {}
- data OutputDatum
- data TxOut = TxOut {}
- txOutPubKey ∷ TxOut → Maybe PubKeyHash
- txOutScriptHash ∷ TxOut → Maybe ScriptHash
- isPubKeyOut ∷ TxOut → Bool
- isPayToScriptOut ∷ TxOut → Bool
- pubKeyHashTxOut ∷ Value → PubKeyHash → TxOut
Transactions
A transaction ID, i.e. the hash of a transaction. Hashed with BLAKE2b-256. 32 byte.
This is a simple type without any validation, use with caution. You may want to add checks for its invariants. See the Shelley ledger specification.
Constructors
| TxId | |
Fields | |
Instances
Transaction outputs
A reference to a transaction output. This is a
pair of a transaction ID (TxId), and an index indicating which of the outputs
of that transaction we are referring to.
Constructors
| TxOutRef | |
Fields
| |
Instances
data OutputDatum Source #
The datum attached to an output: either nothing; a datum hash; or the datum itself (an "inline datum").
Constructors
| NoOutputDatum | |
| OutputDatumHash DatumHash | |
| OutputDatum Datum |
Instances
Transaction output for Plutus V4.
Constructors
| TxOut | |
Instances
txOutPubKey ∷ TxOut → Maybe PubKeyHash Source #
The public key attached to a TxOut, if there is one.
txOutScriptHash ∷ TxOut → Maybe ScriptHash Source #
The validator hash attached to a TxOut, if there is one.
isPubKeyOut ∷ TxOut → Bool Source #
Whether the output is a pay-to-pubkey output.
isPayToScriptOut ∷ TxOut → Bool Source #
Whether the output is a pay-to-script output.
pubKeyHashTxOut ∷ Value → PubKeyHash → TxOut Source #
Create a transaction output locked by a public key.