DatumType

class cometa.common.datum_type.DatumType(value)[source]

Bases: IntEnum

Represents different ways of associating a Datum with a UTxO in a transaction.

Datums provide a way to attach data to transaction outputs, which is essential for Plutus smart contract execution.

DATA_HASH = 0

A hash of the datum is included in the transaction output.

Instead of including the full Datum directly within the transaction, only a hash of the Datum is stored. This makes the transaction more compact, especially for large datums. When spending, the actual Datum value must be provided in the transaction witness set.

INLINE_DATA = 1

The actual datum value is included directly in the transaction output.

The full datum is “inlined” in the transaction data itself, making it immediately available without needing to provide it separately when spending.