TransactionOutput

scalus.cardano.ledger.TransactionOutput
See theTransactionOutput companion trait

Attributes

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

Members list

Type members

Classlikes

final case class Babbage(address: Address, value: Value, datumOption: Option[DatumOption] = ..., scriptRef: Option[ScriptRef] = ...) extends TransactionOutput

Babbage-era transaction output format with extended features

Babbage-era transaction output format with extended features

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Shelley(address: Address, value: Value, datumHash: Option[DataHash] = ...) extends TransactionOutput

Shelley-era transaction output format

Shelley-era transaction output format

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

CBOR decoder for TransactionOutput

CBOR decoder for TransactionOutput

Attributes

Supertypes
trait Decoder[TransactionOutput]
class Object
trait Matchable
class Any
Self type

CBOR encoder for TransactionOutput

CBOR encoder for TransactionOutput

Attributes

Supertypes
trait Encoder[TransactionOutput]
class Object
trait Matchable
class Any
Self type

Pretty prints TransactionOutput with address, value, and datum info

Pretty prints TransactionOutput with address, value, and datum info

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

def apply(address: Address, value: Value): TransactionOutput

Creates a Shelley-era transaction output with the specified address and value.

Creates a Shelley-era transaction output with the specified address and value.

Value parameters

address

the destination address for this output

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Shelley transaction output with no datum hash

def apply(address: Address, value: Value, datumHash: DataHash): TransactionOutput

Creates a Shelley-era transaction output with the specified address, value, and optional datum hash.

Creates a Shelley-era transaction output with the specified address, value, and optional datum hash.

Value parameters

address

the destination address for this output

datumHash

datum hash associated with this output

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Shelley transaction output

def apply(address: Address, value: Value, datumOption: DatumOption): TransactionOutput

Creates a Babbage-era transaction output with the specified address, value, and optional datum.

Creates a Babbage-era transaction output with the specified address, value, and optional datum.

Value parameters

address

the destination address for this output

datumOption

datum associated with this output

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Babbage transaction output with no script reference

def apply(address: Address, value: Value, inlineDatum: Data): TransactionOutput

Creates a Babbage-era transaction output with an inline datum.

Creates a Babbage-era transaction output with an inline datum.

This is a convenience method equivalent to using DatumOption.Inline(inlineDatum).

Value parameters

address

the destination address for this output

inlineDatum

the datum to embed inline in this output

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Babbage transaction output with the inline datum

def apply(address: Address, value: Value, datumOption: Option[DatumOption], scriptRef: Option[ScriptRef]): TransactionOutput

Creates a Babbage-era transaction output with all optional parameters.

Creates a Babbage-era transaction output with all optional parameters.

Value parameters

address

the destination address for this output

datumOption

optional datum associated with this output

scriptRef

optional script reference

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Babbage transaction output

def unapply(transactionOutput: TransactionOutput): (Address, Value, Option[DatumOption], Option[ScriptRef])

Deprecated methods

def apply(address: Address, value: Value, datumOption: Option[DatumOption]): TransactionOutput

Creates a Babbage-era transaction output with the specified address, value, and optional datum.

Creates a Babbage-era transaction output with the specified address, value, and optional datum.

Value parameters

address

the destination address for this output

datumOption

optional datum associated with this output

value

the value (ADA and native tokens) contained in this output

Attributes

Returns

a new Babbage transaction output with no script reference

Deprecated
[Since version 0.14.2] use apply(address, value, datumOption: DatumOption) or apply(address, value, inlineDatum: Data)

Concrete fields

Givens

Givens

CBOR decoder for TransactionOutput

CBOR decoder for TransactionOutput

Attributes

CBOR encoder for TransactionOutput

CBOR encoder for TransactionOutput

Attributes

Pretty prints TransactionOutput with address, value, and datum info

Pretty prints TransactionOutput with address, value, and datum info

Attributes

Extensions

Extensions

extension (o: TransactionOutput)
def hasDatumHash(hash: DataHash): Boolean

Check if output has a datum with the specified hash

Check if output has a datum with the specified hash

Attributes