A piece of data attached to a transaction output in Cardano's eUTxO model. The datum acts like state that travels with the output: a smart contract sees it whenever someone tries to spend the output and decides, based on its contents plus the redeemer, whether to allow the spend.
Inline datums (introduced with the Vasil hard fork) store the data directly on the output; earlier outputs stored only a hash of the datum, with the full data supplied later by the spending transaction.
Explore next
- RedeemerData supplied by the spending transaction that tells a smart contract what action is being attempted.View term
- eUTXOCardano's extension of the UTXO accounting model; each output can carry datum and script logic, so smart contracts express rules without the shared mutable state used by account-based chains.View term
- Smart ContractSelf-executing code stored on a blockchain that automatically enforces and executes agreement terms when predefined conditions are met.View term