Transaction

scalus.cardano.ledger.Transaction
See theTransaction companion class
object Transaction

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Pretty prints Transaction with inlined body and witness fields

Pretty prints Transaction with inlined body and witness fields

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Create a transaction with the given body and empty witness set, assuming valid and no auxiliary data

Create a transaction with the given body and empty witness set, assuming valid and no auxiliary data

Attributes

Create a transaction with the given body and witness set, assuming valid and no auxiliary data

Create a transaction with the given body and witness set, assuming valid and no auxiliary data

Attributes

def apply(body: TransactionBody, witnessSet: TransactionWitnessSet, auxiliaryData: AuxiliaryData): Transaction

Create a transaction with the given body, witness set, and auxiliary data, assuming valid

Create a transaction with the given body, witness set, and auxiliary data, assuming valid

Attributes

An empty transaction

An empty transaction

Attributes

def fromCbor(bytes: Array[Byte])(using pv: ProtocolVersion = ...): Transaction

Decodes a transaction, [body, witnesses, isValid, auxiliary data] or, without the flag, [body, witnesses, auxiliary data].

Decodes a transaction, [body, witnesses, isValid, auxiliary data] or, without the flag, [body, witnesses, auxiliary data].

The result keeps bytes, so Transaction.toCbor returns them until the transaction is changed.

Attributes

Givens

Givens

Decodes a transaction as cardano-ledger's AlonzoTx decoder does (Alonzo to Conway).

Decodes a transaction as cardano-ledger's AlonzoTx decoder does (Alonzo to Conway).

Since cardano-ledger-alonzo 1.16.0.0 (cardano-node 11.1.3) the isValid flag is optional, so that a transaction built for an era before Alonzo can be submitted later: when the element after the witnesses is a CBOR bool it is the flag, otherwise it is the auxiliary data, isValid is true, and the record has 3 elements instead of 4. As in the ledger, the length is checked after the elements are read.

Attributes

CBOR codec for Transaction

CBOR codec for Transaction

Attributes

Pretty prints Transaction with inlined body and witness fields

Pretty prints Transaction with inlined body and witness fields

Attributes