Module

Cardano.Transaction.Builder

#OutputWitness

data OutputWitness

OutputWitness is used to provide the evidence needed to consume an output. It must correspond to a TransactionUnspentOutput address' payment credential to unlock it.

Constructors

Instances

#CredentialWitness

data CredentialWitness

CredentialWitness is used to provide the evidence needed to perform operations on behalf of a credential, which include:

  • Minting
  • Certificate witnessing
  • Rewards withdrawal

Unlike OutputWitness, it does not include a DatumWitness, because minting policies and stake scripts do not have a datum.

Constructors

Instances

#ScriptWitness

data ScriptWitness a

Gives the user options for specifying everything needed to spend an UTxO located at an address with a ScriptHash payment credential.

  • ScriptValue contains a script for the witness set.

  • ScriptReference contains a CIP-31 reference input where the inline script should be available at, and a flag to either spend the referenced input or just reference it.

Constructors

Instances

#DatumWitness

data DatumWitness

Datums in UTxOs can be stored in two forms: inline datums or datum hashes. When there's a hash, we need to provide a datum corresponding to this hash, which can be done by either providing the value literally, or using a reference input where it is stored inline.

Constructors

Instances

#RefInputAction

data RefInputAction

Inputs can be referenced or spent in a transaction (See CIP-31). Inline datums (CIP-32) and reference scripts (CIP-33) contained within transaction outputs become visible to the script context of the transaction, regardless of whether the output is spent or just referenced. This data type lets the developer to specify, which action to perform with a referenced input.

Constructors

Instances

#ExpectedWitnessType

data ExpectedWitnessType witness

Constructors

Instances

#explainTxBuildError

Modules