Chapter 6 of 8 Extended UTxO
0%

Extended UTxO

Cardano’s eUTxO model takes Bitcoin’s proven foundation and adds three powerful ingredients: Datum, Redeemer, and Context.

eUTxO stands for Extended Unspent Transaction Output. It is the ledger model of Cardano. Like Bitcoin, Cardano stores value in outputs that are spent whole. eUTxO extends each output so it can carry data and be locked by a script, which turns plain payments into programmable smart contracts while keeping validation deterministic.

Datum

Custom data attached to script-locked outputs. This is the “state” of a smart contract, think of it as a note pinned to a banknote that says what it’s for.

Redeemer

Data provided by the person spending the output. It’s the “action” or argument passed to the validator: claim, swap, vote, cancel, whatever the contract expects.

Script Context

The full transaction visible to the validator script. Inputs, outputs, fees, signatories, time range, everything needed to decide if this spend is valid.

eUTxO Validation Flow
Input
UTxO
value: 100 ₳
datum
+
Spending
Transaction
redeemer
context
→
Validator
Script
datum redeemer context
→ True | False
→
Output
New UTxO
value: 100 ₳
new datum

Determinism Preserved

The critical advantage: because the script sees only the transaction (not global state), validation is fully deterministic. You know whether your transaction will succeed before you submit it. With honest pre-validation, transactions don’t fail on-chain unexpectedly, and if a script does fail in phase-2 validation, only the dedicated collateral is consumed, not the full transaction value.

UTxO vs eUTxO

Property Bitcoin UTxO Cardano eUTxO
Output holdsAmount and locking scriptAmount, native tokens, optional datum or script reference
Spending conditionSignature or limited scriptSignature, native script or Plutus validator
Script seesIts own input and witness dataThe whole transaction (script context)
Contract stateNot supportedStored in the datum of an output
TokensNeeds extra protocolsNative, no contract required
FeeLeftover of inputs minus outputsExplicit, calculated before submission

Validator Playground

Explore how an eUTxO validator evaluates a transaction. Configure the inputs and see the result.

EUTXO Validator Lab
Token Vesting Contract
{
beneficiary:""
deadline:
amount:₳
}
Signer
Valid From Slot
Inputs · 1100 ₳
Outputs · 199.83 ₳
fee 0.17 ₳
Signatories[alice]
Validity Range[500, ∞)
Scriptvesting.plutus
Datum+Claim+validFrom=500, signer=alice→?

The Road to eUTxO

2009

Bitcoin launches with UTxO

Satoshi introduces the UTxO model: simple, robust, designed for decentralized value transfer.

2015

Ethereum introduces Accounts

Vitalik chooses accounts to enable richer smart contracts. Trade-off: shared mutable state.

2020

eUTxO Paper published

Chakravarty et al. formalise an extension of UTxO that supports expressive contracts while preserving the dataflow properties of the original model. The paper also introduces Constraint Emitting Machines (CEM), a way to model contracts as state machines on eUTxO.

2021

Alonzo hard fork

Cardano brings eUTxO smart contracts to mainnet with Plutus scripts.

2024+

Ecosystem matures

Design patterns mature in production: state-machine contracts in the spirit of CEM, multi-validator protocols, batch processing at scale.

Frequently asked questions

What is eUTxO?

eUTxO, the Extended Unspent Transaction Output model, is the ledger model of Cardano. It keeps the UTXO structure of Bitcoin and lets each output carry a datum and be locked by a script. To spend such an output, a transaction supplies a redeemer, and the script decides based on datum, redeemer and the whole transaction whether the spend is valid.

How is eUTxO different from Bitcoin UTXO?

Bitcoin outputs carry an amount and a locking script with limited expressiveness, and that script cannot see the rest of the transaction. eUTxO outputs can also hold arbitrary data (the datum) and native tokens, and the validator sees the full transaction, including all inputs, outputs, signers and the validity interval. That makes general smart contracts possible.

Which blockchains use eUTxO?

Cardano uses eUTxO since the Alonzo hard fork in September 2021. Ergo uses its own extended UTXO design with registers on each box. Bitcoin and its forks use the plain UTXO model.

Why can eUTxO transactions be checked before submission?

A validator only sees the transaction and the outputs it spends, never any global state that could change in the meantime. If the transaction validates on your machine, it validates the same way on chain, as long as its inputs are still unspent. If an input was spent in the meantime, the transaction is rejected without charging a fee.

Does eUTxO have a concurrency problem?

Transactions that spend different outputs never conflict, so they can be processed in parallel. Problems appear only when many users want to spend the same script output at once, which is called contention. DEXes solve this with batchers or several pool outputs, and oracles use reference inputs, which can be read without being spent.

Mastery Check

Three quick questions

Optional. Score 3/3 to earn mastery badges. Your first attempt counts for the Polymath badge. Questions and answer order are randomised on every attempt.