Skip to content
Docs
Edel Markets

Settlement and custody

How off-chain execution, owner approvals and Canton confirmations work together.

Execution, custody and settlement

Edel records ordered off-chain execution in a durable journal. Canton confirms settlement and ledger movements. Account owners authorize the custody actions that require their consent. Together, these records establish what executed, what was approved and what settled.

Query views and WebSocket updates make that state available to clients. They are derived from the execution and ledger records: a refreshed balance or a connected socket is not an additional authorization or settlement confirmation.

Settlement pipeline

Settlement pipeline

  • Step
  • On Canton
  • Alternate path

8 parts and 8 connections.

Committed execution effects become balanced batches for asynchronous Canton settlement.
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.

Canton validates balanced effects and ordered evidence before recording settlement.
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.

Which evidence answers which question

Execution, custody approval, ledger finality and presentation each have a different role. The journal establishes the committed off-chain outcome. Canton confirms the ledger-side effect. An owner approval authorizes the specific custody action; it does not claim that the action has already completed. Read models and WebSocket delivery make those facts observable without becoming a new source of financial authority.

This separation also explains recovery. Replaying committed execution rebuilds engine state, while funding credit or payout completion requires its corresponding confirmed ledger evidence. A deposit submitted from the browser is not yet usable collateral, and a withdrawal accepted by the venue is not yet a completed owner payout.

QuestionRequired evidenceWhat is insufficient
Was the order executed?Committed execution outcome and its authoritative order/fill stateA local draft, preview estimate or transport acknowledgement alone.
What state follows an interruption?Verified committed history and the supported recovery checkpointAn unverified cached balance or newly connected socket.
Can a deposit be credited?Confirmed Canton deposit evidence, applied through ordered account accountingOwner approval or a submitted intent without ledger confirmation.
May a withdrawal proceed?A valid withdrawal request and the required owner authorizationA read/trade API key or an available-balance screenshot.
Did the owner receive the payout?The required owner claim and confirmed payout resultA prepared payout or venue settlement status by itself.
Is settlement final?Canton-confirmed settlement evidenceA fill timestamp, history refresh or query projection.