Settlement and custody
How off-chain execution, owner approvals and Canton confirmations work together.
Settlement pipeline
Settlement pipeline
- Step
- On Canton
- Alternate path
8 parts and 8 connections.
Read as text
- Committed fills → Verify execution
- Verify execution → Stable batch
- Stable batch → Durable outbox
- Durable outbox → Canton (ledger interface)
- Canton → Confirmed settled record
- Confirmed settled record → Finalize + reconcile
- Durable outbox → Canton (same identity on retry) [alternate path]
- Canton unavailable → Durable outbox (pause submissions) [alternate path]
The settlement worker takes committed execution records and their balanced account effects, groups them into ordered net batches, and stores each submission in a durable outbox. Canton validates and confirms the settlement.
Net settlement. A batch contains transfers and expected account changes for a settlement window. Many trading effects can therefore settle together, instead of requiring a blockchain transaction for every order.
Ordered batches. The batching policy preserves complete command effects and limits the size of each batch. The window is not a fixed delay or a guarantee of settlement at a particular time.
Recoverable submissions. Retries keep the same batch identity and payload. Sequence and predecessor checks preserve the order of settlement, while confirmed Canton records establish finality.
Settle obligations after execution
Off-chain processing can produce many order and fill outcomes before settlement publishes a netted batch. A single order can generate zero, one or several fills, while one settlement batch can represent many eligible effects. Orders per second, fills per second and Canton settlement transactions per second are therefore different measures.
Batching is bounded by policy and preserves ordered evidence. A fill-timeline window does not imply that every trade settles on a fixed wall-clock schedule. Settlement has no fixed completion-time guarantee.
From committed fills to balanced effects
Settlement groups eligible committed effects into an ordered batch. Each batch carries a sequence range, transfers, expected per-account changes and the evidence needed to connect it to execution history. Off-chain netting reduces settlement work while preserving the financial result.
Daml settlement contracts verify that transfers match the expected account changes and that effects balance for each asset. Before updating ledger state, they also check predecessor evidence and require the sequence to advance. Query views reflect these outcomes; they do not replace ledger validation.
Canton settlement model
Canton settlement model
- Step
- On Canton
9 parts and 8 connections.
Read as text
- Committed execution and netting → Ordered batch
- Ordered batch → Validate balance and correspondence
- Current ledger state → Apply settlement
- Validate balance and correspondence → Apply settlement
- Predecessor evidence and advancing sequence → Apply settlement
- Apply settlement → Updated ledger balances
- Apply settlement → Confirmed settlement record
- Confirmed settlement record → Product settlement status
An ordered settlement batch connects off-chain execution to validated ledger effects.
Balanced effects. Transfers must agree with the expected account changes, and the net effects must balance for each asset.
Ordered history. Predecessor evidence must match, and the incoming sequence range must advance beyond the previously settled range.
Confirmed results. Successful application updates ledger balances and records the settled batch. Query services can then expose the confirmed result.
Preserve identity through settlement retries
A submission can fail before it is sent, succeed while its response is lost, or remain unresolved while confirmation is pending. Settlement preserves the batch identity and its evidence throughout recovery so that a retry can be reconciled with the original submission.
Recorded submission intent supports retry and recovery. Confirmed Canton evidence establishes settlement finality. An order’s earlier off-chain acknowledgement remains a separate event.
Funding still requires ledger evidence
A deposit becomes trading collateral after its confirmed effect is ingested into ordered account state. Withdrawal completion can require reservation, owner consent, ledger consumption and later payout acceptance. An accepted command or receipt-backed account debit does not automatically mean the owner has claimed the payout.
Follow Deposits and Withdrawals for the user workflow. For implementation details, see the settlement contract model. Client integrations use product APIs; the backend handles ledger operations.