Canonical order
Canonical order is the fixed order in which servers apply the transactions of a ledger. Every server sorts the agreed set of transactions the same way, so every server processes them the same way.
In plain words
Servers may receive the same transactions in different orders, and there is no central timekeeper to say which one was first. So the order of arrival is not used. Each server puts the set of transactions in canonical order and applies them to the previous ledger in that order.
How it works
The order is deterministic: it follows from the final set of transactions in the ledger. It is designed to be efficient but hard to manipulate, so that participants do not compete over transaction ordering. A transaction with certain retriable failures moves to the end of the canonical order. It is tried again after the other transactions in the same ledger version.
Where you meet it
A server's in-progress ledger applies transactions as they are received. A validated ledger applies them in canonical order. This is one reason why the provisional outcome of a transaction may differ from the final result. For example, a payment may get a different final exchange rate depending on whether it runs before or after another payment that would consume the same offer.
Source: xrpl.org, xrpl.org, xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made