Class LedgerHeader
Every ledger version has a unique header that describes the contents. You can look up a ledger's header information with the ledger method.
Inheritance
Namespace: Xrpl.BinaryCodec.Ledger
Assembly: Xrpl.BinaryCodec.dll
Syntax
public class LedgerHeader : object
Properties
| Improve this Doc View SourceCloseFlags
A bit-map of flags relating to the closing of this ledger.
Declaration
public Uint8 CloseFlags { get; }
Property Value
Type | Description |
---|---|
Uint8 |
CloseResolution
The resolution (in seconds) of the close time An integer in the range [2,120] indicating the maximum number of seconds by which the close_time could be rounded.
Declaration
public Uint8 CloseResolution { get; }
Property Value
Type | Description |
---|---|
Uint8 |
CloseTime
UTC minute ledger closed encoded as seconds since 1/1/2000 (or 0 for genesis ledger)
Declaration
public Uint32 CloseTime { get; }
Property Value
Type | Description |
---|---|
Uint32 |
LedgerIndex
Ledger Sequence (0 for genesis ledger)
Declaration
public Uint32 LedgerIndex { get; }
Property Value
Type | Description |
---|---|
Uint32 |
ParentCloseTime
The time the previous ledger closed
Declaration
public Uint32 ParentCloseTime { get; }
Property Value
Type | Description |
---|---|
Uint32 |
ParentHash
The hash of the previous ledger (0 for genesis ledger)
Declaration
public Hash256 ParentHash { get; }
Property Value
Type | Description |
---|---|
Hash256 |
StateHash
The hash of the state tree's root node.
Declaration
public Hash256 StateHash { get; }
Property Value
Type | Description |
---|---|
Hash256 |
TotalDrops
The total number of drops of XRP owned by accounts in the ledger. This omits XRP that has been destroyed by transaction fees.
The actual amount of XRP in circulation is lower because some accounts are "black holes" whose keys are not known by anyone.
Declaration
public Uint64 TotalDrops { get; }
Property Value
Type | Description |
---|---|
Uint64 |
TransactionHash
The hash of the transaction tree's root node. The SHA-512Half of the transactions included in this ledger.
Declaration
public Hash256 TransactionHash { get; }
Property Value
Type | Description |
---|---|
Hash256 |
Methods
| Improve this Doc View SourceFromReader(StReader)
construct headers from reader
Declaration
public static LedgerHeader FromReader(StReader reader)
Parameters
Type | Name | Description |
---|---|---|
StReader | reader | reader |
Returns
Type | Description |
---|---|
LedgerHeader |
Hash()
get headers hash
Declaration
public Hash256 Hash()
Returns
Type | Description |
---|---|
Hash256 |
ToJson()
headers to json
Declaration
public JObject ToJson()
Returns
Type | Description |
---|---|
JObject |