Class LOBaseLedger
base ledger fields
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class LOBaseLedger
Properties
| Edit this page View SourceLedgerHash
The SHA-512Half of this ledger version.
This serves as a unique identifier for this ledger and all its contents.
Declaration
[JsonPropertyName("ledger_hash")]
public string LedgerHash { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LedgerIndex
The ledger index of the ledger.
Some API methods display this as a quoted integer; some display it as a native JSON number.
Declaration
[JsonPropertyName("ledger_index")]
public uint? LedgerIndex { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
Remarks
Unconditional for the dedicated ledger_closed command (rippled
LedgerClosed.cpp), but this class is also the base of LOLedger for the
general ledger command, where the shared lookupLedger helper
(RPCLedgerHelpers.cpp) sets this field only when the resolved ledger is closed —
an open/current ledger response carries ledger_current_index instead and omits
this member entirely.
UnknownFields
Members the node sent that no declared property here claims. Mirrors UnknownFields for ledger entries and UnknownFields for command results: without it, anything this model does not yet know about is dropped between the node and the caller instead of surviving the round trip.
Declaration
[JsonExtensionData]
public Dictionary<string, JsonElement> UnknownFields { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, JsonElement> |