Show / Hide Table of Contents

Class BaseLedgerEntry

Inheritance
object
BaseLedgerEntry
LOAccountRoot
LOAmendments
LOAmm
LOBridge
LOCheck
LOCredential
LODID
LODelegate
LODepositPreauth
LODirectoryNode
LOEscrow
LOFeeSettings
LOLedgerHashes
LOLoan
LOLoanBroker
LOMPToken
LOMPTokenIssuance
LONegativeUNL
LOOffer
LOOracle
LOPayChannel
LOPermissionedDomain
LORippleState
LOSignerList
LOSponsorship
LOTicket
LOVault
LOXChainOwnedClaimID
LOXChainOwnedCreateAccountClaimID
LONFTokenOffer
LONFTokenPage
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class BaseLedgerEntry

Properties

| Edit this page View Source

Index

The 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.)

Declaration
[JsonPropertyName("index")]
public string Index { get; set; }
Property Value
Type Description
string
| Edit this page View Source

LedgerEntryType

Declaration
[JsonConverter(typeof(LedgerEntryTypeConverter))]
public LedgerEntryType? LedgerEntryType { get; set; }
Property Value
Type Description
LedgerEntryType?
| Edit this page View Source

LedgerIndex

Declaration
[JsonPropertyName("LedgerIndex")]
public string LedgerIndex { get; set; }
Property Value
Type Description
string
| Edit this page View Source

UnknownFields

Members of this ledger entry that no declared property claims — new fields an amendment added to the wire format before this SDK modeled them, or anything else unrecognized. Populated on every derived LO* type, and on FinalFields/PreviousFields/NewFields reached through LOConverter and the node converters, because those converters only pick the concrete .NET type; the field-level read is the ordinary reflection-based deserializer, which is what honors this attribute.

Declaration
[JsonExtensionData]
public Dictionary<string, JsonElement> UnknownFields { get; set; }
Property Value
Type Description
Dictionary<string, JsonElement>
Remarks

This is not a substitute for XrplResponse<T>.Raw: values here have already gone through JSON parsing (numbers, strings, nested objects as System.Text.Json.JsonElement), while Raw is the exact bytes the node sent. Use Raw when byte-for-byte fidelity matters (verifying what a node actually said); use this when a caller just needs to read a field the model does not yet declare.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX