Canonical field order
Canonical field order is the fixed order in which the fields of a transaction are sorted when the transaction is put into binary format. A field is one named value.
In plain words
To put a transaction into binary format, you follow a list of steps. One of them is to sort all the fields in canonical order. Because the order is fixed, the fields always end up in the same sequence.
The steps in short
First all required fields are provided. Then each field's data is converted into its internal binary format. The fields are sorted in canonical order, and each one gets a prefix called a Field ID. Last, the fields are joined together in their sorted order.
Fields inside objects
Some fields are objects with members of their own, such as SignerEntry and Memo. The members of an object must be placed in canonical order inside it. This is the same order that applies to all top-level fields. After the last member comes an Object end Field ID of 0xe1 with no contents. Array fields already have an explicit order.
A second canonical order
The same words are also used for the transactions of a ledger. Servers put the agreed set of transactions in canonical order so that every server processes them the same way.
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