> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dune.com/llms.txt
> Use this file to discover all available pages before exploring further.

# stellar.history_ledgers

> Stellar ledger data — sequence number, transaction count, and protocol version.

export const TableSample = ({tableName, tableSchema}) => <>
    <div className="hidden dark:block">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}&darkMode=true`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
    <div className="dark:hidden">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
  </>;

## Table description

The `stellar.history_ledgers` table tracks ledgers info (equivalent of blocks on other blockchain), including metadata such as sequence numbers, transactions included, and fees.

## Column Descriptions

| **Column** | **Description** | **Type** |
| - | - | - |
| **closed\_at\_date** | The date when the ledger was closed. | date |
| **sequence** | The sequence number of the ledger. | bigint |
| **ledger\_hash** | The hash of the current ledger, in binary format. | varbinary |
| **previous\_ledger\_hash** | The hash of the previous ledger, in binary format. | varbinary |
| **transaction\_count** | The number of transactions included in the ledger. | bigint |
| **operation\_count** | The number of operations executed within the transactions in the ledger. | bigint |
| **closed\_at** | The timestamp when the ledger was closed. | timestamp(3) with time zone |
| **id** | The unique identifier for the ledger entry. | bigint |
| **total\_coins** | The total number of lumens (XLM) in circulation at the time the ledger was closed. | bigint |
| **fee\_pool** | The sum of all transaction fees accumulated in the ledger. | bigint |
| **base\_fee** | The minimum fee, in lumens (XLM), charged per operation included in the ledger. | bigint |
| **base\_reserve** | The minimum XLM balance required to maintain an account, as defined in the ledger. | bigint |
| **max\_tx\_set\_size** | The maximum number of transactions that can be included in a ledger. | bigint |
| **protocol\_version** | The protocol version used by the ledger. | bigint |
| **ledger\_header** | The raw binary (XDR) representation of the ledger header. | varbinary |
| **successful\_transaction\_count** | The number of successful transactions in the ledger. | bigint |
| **failed\_transaction\_count** | The number of failed transactions in the ledger. | bigint |
| **tx\_set\_operation\_count** | The total number of operations in the transaction set of the ledger. | bigint |
| **soroban\_fee\_write\_1kb** | The fee in lumens (XLM) for writing 1KB of data related to Soroban smart contracts. | bigint |
| **node\_id** | The identifier of the node that signed and validated the ledger. | varchar |
| **signature** | The digital signature applied to the ledger by the validating node. | varchar |
| **total\_byte\_size\_of\_bucket\_list** | The total byte size of the ledger's bucket list, which tracks state changes. | bigint |
| **updated\_at** | The time when the ledger record was last updated. | timestamp(3) with time zone |
| **ingested\_at** | The time when the ledger data was ingested into the system. | timestamp(3) with time zone |

## Table Sample

<TableSample tableSchema="stellar" tableName="history_ledgers" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.