LedgerHeaderXdr

data class LedgerHeaderXdr(val ledgerVersion: Uint32Xdr, val previousLedgerHash: HashXdr, val scpValue: StellarValueXdr, val txSetResultHash: HashXdr, val bucketListHash: HashXdr, val ledgerSeq: Uint32Xdr, val totalCoins: Int64Xdr, val feePool: Int64Xdr, val inflationSeq: Uint32Xdr, val idPool: Uint64Xdr, val baseFee: Uint32Xdr, val baseReserve: Uint32Xdr, val maxTxSetSize: Uint32Xdr, val skipList: Array<HashXdr>, val ext: LedgerHeaderExtXdr)

XDR Source: struct LedgerHeader { uint32 ledgerVersion; // the protocol version of the ledger Hash previousLedgerHash; // hash of the previous ledger header StellarValue scpValue; // what consensus agreed to Hash txSetResultHash; // the TransactionResultSet that led to this ledger Hash bucketListHash; // hash of the ledger state

uint32 ledgerSeq; // sequence number of this ledger

int64 totalCoins; // total number of stroops in existence.
                  // 10,000,000 stroops in 1 XLM

int64 feePool;       // fees burned since last inflation run
uint32 inflationSeq; // inflation sequence number

uint64 idPool; // last used global ID, used for generating objects

uint32 baseFee;     // base fee per operation in stroops
uint32 baseReserve; // account base reserve in stroops

uint32 maxTxSetSize; // maximum size a transaction set can be

Hash skipList[4]; // hashes of ledgers in the past. allows you to jump back
                  // in time without walking the chain back ledger by ledger
                  // 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

// reserved for future use
union switch (int v)
{
case 0:
    void;
case 1:
    LedgerHeaderExtensionV1 v1;
}
ext;

};

Constructors

Link copied to clipboard
constructor(ledgerVersion: Uint32Xdr, previousLedgerHash: HashXdr, scpValue: StellarValueXdr, txSetResultHash: HashXdr, bucketListHash: HashXdr, ledgerSeq: Uint32Xdr, totalCoins: Int64Xdr, feePool: Int64Xdr, inflationSeq: Uint32Xdr, idPool: Uint64Xdr, baseFee: Uint32Xdr, baseReserve: Uint32Xdr, maxTxSetSize: Uint32Xdr, skipList: Array<HashXdr>, ext: LedgerHeaderExtXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

base fee per operation in stroops

Link copied to clipboard

account base reserve in stroops

Link copied to clipboard

hash of the ledger state

Link copied to clipboard
Link copied to clipboard

10,000,000 stroops in 1 XLM fees burned since last inflation run

Link copied to clipboard

last used global ID, used for generating objects

Link copied to clipboard

inflation sequence number

Link copied to clipboard

sequence number of this ledger

Link copied to clipboard

the protocol version of the ledger

Link copied to clipboard

maximum size a transaction set can be

Link copied to clipboard

hash of the previous ledger header

Link copied to clipboard

what consensus agreed to

Link copied to clipboard
Link copied to clipboard

total number of stroops in existence.

Link copied to clipboard

the TransactionResultSet that led to this ledger

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)