Show / Hide Table of Contents

Class LOBaseLedger

base ledger fields

Inheritance
object
LOBaseLedger
LOLedger
Namespace: Xrpl.Models.Ledger
Assembly: Xrpl.dll
Syntax
public class LOBaseLedger

Properties

| Edit this page View Source

LedgerHash

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
| Edit this page View Source

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.

| Edit this page View Source

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>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX