Skip to content

Ledger Objects Types

[Source]

Every entry in a ledger’s state data has the same set of common fields, plus additional fields based on the ledger entry type. Field names are case-sensitive. The common fields for all ledger entries are:

FieldJSON TypeInternal TypeRequired?Description
index or LedgerIndexStringHash256NoThe unique ID for this ledger entry. In JSON, this field is represented with different names depending on the context and API method. (Note, even though this is specified as “optional” in the code, every ledger entry should have one unless it’s legacy data from very early in the XRP Ledger’s history.)
LedgerEntryTypeStringUInt16YesThe type of ledger entry. Valid ledger entry types include AccountRoot, Offer, RippleState, and others.
FlagsNumberUInt32YesSet of bit-flags for this ledger entry.
RemarksArraySTArrayNoArray of remark objects to set, update, or delete (see Remarks Format)