Chapter 2 of 8 UTxO vs Account
0%

UTxO vs
Account Model

Bitcoin pioneered UTxO. Ethereum chose accounts. Both work, but they make fundamentally different trade-offs.

In short: the UTxO model records value as individual unspent outputs that are spent whole, as Bitcoin and Cardano do. The account model records one balance per address and updates it in place, as Ethereum does. The choice decides how transactions can run in parallel, whether their result is predictable before submission, and how smart contracts manage state.

UTxO Model

Like Cash

You have a €20 note and a €10 note in your wallet. To pay €25, you hand over both notes and get a €5 note back. The original notes are gone.

Your “balance” is the sum of individual outputs you control. Each transaction destroys old outputs and creates new ones.

  • ◆ Inherently parallel, no shared mutable state
  • ◆ Deterministic, outcome known before submission
  • ◆ Privacy-friendly. Outputs can use different addresses
  • ◆ Resource use known before submission; on Cardano even the fee is deterministic
  • ◆ Used by: Bitcoin, Cardano, Ergo, Nervos
Property UTxO Account
State modelImmutable outputsMutable balances
ParallelismHigher potential (independent UTxOs)Serialised per account
DeterminismFully deterministicDepends on global state
Failed transactionsPhase-1 failures rejected for free; phase-2 script failures forfeit collateral on-chainCan fail on-chain, fees consumed
Privacy (in practice)Many wallets rotate addressesSame address typically reused
Contract patternsState machines / CEMDirect state mutation
Formal verificationEasier (local reasoning)Harder (global effects)

Same Transfer, Two Models

See how the same 20 ₳ transfer from Alice to Bob plays out in each paradigm.

Alice sends 20 ₳ to Bob, same transfer, two paradigms
UTxO Model
Alice's Wallet
30 ₳20 ₳
Account Model
Alice
50 ₳
Bob
10 ₳

Where the Model Hits Reality

The choice between accounts and outputs isn’t only architectural. It shapes how wallets can be drained.

eUTxO

Nothing to Approve

No standing permission exists. A validator script doesn’t hold balances; it gates a specific UTxO, only for the transaction at hand.

Each UTxO is consumed once, in full. There is no ‘approve’ equivalent, because there are no balances to grant access to. Spending from an ordinary key-controlled wallet address always needs your signature on that exact transaction. Two limits remain: funds you lock at a script follow that script’s rules from then on, without asking you again, and signing a malicious transaction still loses exactly what that transaction spends.

  • ◆ No token allowances handed to contracts
  • ◆ Wallet spends need a signature per transaction
  • ◆ Script-locked funds follow the script’s rules

Subscription vs. Cash

An ‘approve’ is the crypto version of a standing direct debit: convenient until you forget who can still pull from your account. eUTxO is closer to paying with cash. Every transfer is an act, not a permission.

Which model is better?

For simple payments both models work well. UTxO needs a little more bookkeeping in the wallet, which has to pick inputs and create change. Accounts need a nonce per address so that the same transfer cannot be replayed.

For smart contracts the account model is easier to start with, because a contract keeps its state in one place that every transaction can read and change. That convenience has a cost: when many transactions touch the same state, their order decides the outcome, which opens the door to failed transactions and front-running.

Extended UTxO keeps the predictability of UTxO and adds programmable logic. A script sees only the transaction it validates, so you can check the result before you submit. Developers in turn must split shared state across several outputs to avoid contention. The Extended UTxO chapter shows how that works.

Frequently asked questions

What is the difference between the UTXO and the account model?

The UTXO model stores value as separate unspent outputs that are consumed whole and replaced by new outputs. The account model stores one balance per address and changes that number with every transaction. UTXO works like cash in a wallet, accounts work like a bank balance.

Is Ethereum UTXO or account based?

Ethereum uses the account model. Every address, including smart contracts, has a balance and storage that transactions update in place.

Is Bitcoin UTXO or account based?

Bitcoin uses the UTXO model. It introduced it in 2009. A Bitcoin wallet balance is the sum of all unspent outputs its keys can spend.

Why did Ethereum choose the account model?

The Ethereum design rationale names simplicity and space savings: a transaction needs one reference to the sender instead of a list of inputs, and smart contracts can keep their state in one place. The trade-off is shared mutable state, so the outcome of a transaction can depend on what other transactions did before it.

Which model is better for smart contracts?

Both can run smart contracts. Accounts make shared state such as a single pool balance easy to write. Extended UTxO, used by Cardano, makes validation deterministic and local, so you know before submission whether a transaction will succeed. The price is that contracts must be designed around many independent outputs instead of one shared state.

Does Cardano use the UTXO or the account model?

Cardano uses the Extended UTxO model (eUTxO). It keeps the UTXO structure of Bitcoin and adds a datum, a redeemer and the transaction context so that scripts can validate spending. Staking rewards are the exception: they are tracked in reward accounts.

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.