Canton Network docsArchitecture
The Ledger Model
Updated 24-11-2026
Canton uses an extended UTXO (eUTXO) ledger model where contracts are discrete objects that are created and archived, rather than mutable account balances. This model is fundamental to how Canton achieves privacy and composability.
When to use: When a party’s agreement is essential to the contract’s existence.
When to use: When a party needs visibility for compliance, audit, or information.
When to use: When a party should be able to trigger specific actions.
See Working with Time for the full set of time primitives available in Canton 3.x.
The ledger enforces this atomicity — either the entire swap commits or none of it does.
Contracts as UTXOs
In Canton, the ledger is a collection of active contracts. Each contract:- Is created by a transaction
- Exists until archived by another transaction
- Is immutable
- Has a unique contract ID
Why UTXO?
| Property | UTXO Model | Account Model |
|---|---|---|
| Parallelism | High—independent contracts process in parallel | Low—account locks needed |
| Privacy | Natural—each contract has specific stakeholders | Hard—accounts aggregate data |
| Composability | Built-in—contracts reference each other | Requires careful design |
| Double-spend prevention | Structural—contract archived once | Requires sequence numbers |
Contract Lifecycle
Stakeholder Roles
Every contract has stakeholders—parties with specific relationships to that contract. Stakeholder roles determine visibility and authorization.Signatories
Signatories are the primary authorities on a contract. Properties:- Must authorize contract creation
- Must authorize contract archival
- Always see the contract and all actions on it
- Defined in the template with
signatorykeyword
template Asset
with
issuer : Party
owner : Party
where
signatory issuer, owner -- Both must agree to create/archive
Observers
Observers can see the contract but cannot act on it unilaterally. Properties:- See the contract and consuming choices exercised on it
- Cannot archive or exercise choices (unless also a controller)
- Defined with
observerkeyword
template RegulatedAsset
with
owner : Party
regulator : Party
where
signatory owner
observer regulator -- Regulator can see but not act
Controllers
Controllers can exercise specific choices on a contract. Properties:- Can exercise choices they control
- See the choice and its consequences
- Defined per-choice with
controllerkeyword
template Proposal
with
proposer : Party
accepter : Party
where
signatory proposer
observer accepter
choice Accept : ContractId Agreement
controller accepter -- Only accepter can exercise
do
create Agreement with party1 = proposer, party2 = accepter
Role Comparison
| Role | Can Create? | Can See? | Can Exercise? | Can Archive? |
|---|---|---|---|---|
| Signatory | Yes | Always | If controller | Must authorize |
| Observer | No | Contract + consuming choices | If controller | No |
| Controller | No | Choice + consequences | Yes (their choices) | Via consuming choice |
Transaction Structure
Transactions in Canton are trees of actions. Each action creates, exercises, or fetches contracts. (Note that fetches are not typically returned in the transaction stream.)Action Types
- Create adds a new contract to the ledger and returns a contract ID.
- Exercise executes a choice on a contract (which may archive it) and returns the choice result along with any consequences.
- Fetch reads a contract without changing state, returning the contract data.
Transaction Tree
A transaction tree records all creates, exercises, fetches, and archives that occur within a single transaction:Consuming vs Non-Consuming Choices
A consuming choice (the default) archives the contract when exercised. Use these for state transitions and transfers. A non-consuming choice leaves the contract active, which is useful for queries, notifications, and reads.-- Consuming: archives the contract
choice Transfer : ContractId Asset
controller owner
do
create this with owner = newOwner
-- Non-consuming: contract remains
nonconsuming choice GetBalance : Decimal
controller owner
do
return balance
Views
Each party sees a view of the transaction: only the parts they’re entitled to.View Composition
Visibility Rules
- Signatories see the contract, consuming, and non-consuming choices exercised on it
- Observers see the contract and consuming choices exercised on it
- Controllers see choices they can exercise and their consequences
Ledger Time
Canton uses ledger time for time-based contract logic.choice ClaimAfterDeadline : ()
controller beneficiary
do
assertDeadlineExceeded "claim-after-deadline" deadline
-- ... claim logic
Composability
The UTXO model enables atomic composition—multiple contracts can be affected in a single transaction, all-or-nothing.-- Atomic swap: both transfers happen or neither does
choice ExecuteSwap : ()
controller buyer
do
exercise assetId Transfer with newOwner = buyer
exercise paymentId Transfer with newOwner = seller
Related Topics
- Contract Templates — write your first Daml contracts
- Choices — add behavior to contracts
- Privacy Model — how views enable privacy
- Ledger Model reference — the formal model: structure, privacy, integrity, time, causality