TransactionOutput

scalus.cardano.ledger.TransactionOutput
See theTransactionOutput companion object
sealed trait TransactionOutput

Represents a transaction output in Cardano. Both Shelley-era and Babbage-era output formats are supported.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Babbage
class Shelley

Members list

Value members

Abstract methods

def datumOption: Option[DatumOption]
def scriptRef: Option[ScriptRef]
def value: Value

Creates a copy of this TransactionOutput with a new value

Creates a copy of this TransactionOutput with a new value

Attributes

Concrete methods

def hasDatumHash(hash: DataHash): Boolean
Extension method from TransactionOutput

Check if output has a datum with the specified hash

Check if output has a datum with the specified hash

Attributes

def inlineDatum: Option[Data]

Get inline datum if present, None otherwise

Get inline datum if present, None otherwise

Attributes

Get inline datum, throwing if not present

Get inline datum, throwing if not present

Attributes

def resolveDatum(tx: Transaction): Option[Data]

Resolve datum from output - either inline or by looking up hash in transaction witness set.

Resolve datum from output - either inline or by looking up hash in transaction witness set.

Value parameters

tx

The transaction containing the witness set with plutus data

Attributes

Returns

The resolved datum data, or None if no datum is present or if the hash is not found