Skip to main content

Ledger Headers

Every ledger has a header that references the data in that ledger and the previous ledger. These references are cryptographic hashes of the content which behave like pointers in typical data structures but with added security guarantees. Think of a historical ledger chain as a linked list of ledger headers:

stateDiagram direction LR Genesis --> LedgerHeader_1 LedgerHeader_1 --> ... ... --> LedgerHeader_n

The genesis ledger has a sequence number of 1. The ledger directly following a ledger with sequence number n has a sequence number of n+1.

Ledger header fields

Version

The protocol version of this ledger.

Previous ledger hash

Hash of the previous ledger.

SCP value

During consensus, all the validating nodes in the network run SCP and agree on a particular value, which is a transaction set they will apply to a ledger. This value is stored here and in the following three fields (transaction set hash, close time, and upgrades).

Transaction set hash

Hash of the transaction set applied to the previous ledger.

Close time

The close time is a UNIX timestamp for when the ledger closes. The timestamp is the number of seconds, excluding leap seconds, that have elapsed since UNIX epoch. The UNIX epoch is January 1, 1970 at 00:00:00 UTC.

Upgrades

How the network adjusts overall values (like the base fee) and agrees to network-wide changes (like switching to a new protocol version). This field is usually empty. When there is a network-wide upgrade, the SDF will inform and help coordinate participants using the #validators channel on the Dev Discord and the Stellar Validators Google Group.

Transaction set result hash

Hash of the results of applying the transaction set. This data is not necessary for validating the results of the transactions. However, it makes it easier for entities to validate the result of a given transaction without having to apply the transaction set to the previous ledger.

Bucket list hash

Hash of all the objects in this ledger. The data structure that contains all the objects is called the bucket list.

Ledger sequence

The sequence number of this ledger.

Total coins

Total number of lumens in existence.

Fee pool

Number of lumens that have been paid in fees. Note this is denominated in lumens, even though a transaction’s fee field is in stroops.

Inflation sequence

Number of times inflation has been run. Note: the inflation operation was deprecated when validators voted to upgrade the network to Protocol 12 on 10/28/2019. Therefore, inflation no longer runs, so this sequence number no longer changes.

ID pool

The last used global ID. These IDs are used for generating objects.

Maximum number of transactions

The maximum number of operations validators have agreed to process in a given ledger. If more transactions are submitted than this number, the network will enter into surge pricing mode. For more about surge pricing and fee strategies, see our Fees section.

Base fee

The fee the network charges per operation in a transaction. Calculated in stroops. See the Fees section for more information.

Base reserve

The reserve the network uses when calculating an account’s minimum balance.

Skip list

Hashes of ledgers in the past. Allows you to jump back in time in the ledger chain without walking back ledger by ledger. There are four ledger hashes stored in the skip list. Each slot contains the oldest ledger that is mod of either 50 5000 50000 or 500000 depending on index skipList[0] mod(50), skipList[1] mod(5000), etc.