> ## 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.

# xrpl.ledger

> XRP Ledger data — ledger index, close time, transaction count, and fees.

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 `xrpl.ledger` table contains core ledger data from the XRP Ledger including ledger headers, consensus information, and validation details.

## Column Descriptions

| **Column**                  | **type**  | **Description**                                     |
| --------------------------- | --------- | --------------------------------------------------- |
| **ledger\_hash**            | string    | Unique hash identifier for the ledger               |
| **ledger\_index**           | bigint    | Sequential index number of the ledger               |
| **validated**               | boolean   | Whether the ledger has been validated by consensus  |
| **account\_hash**           | string    | Hash of the account state tree                      |
| **close\_flags**            | bigint    | Flags indicating how the ledger was closed          |
| **close\_time**             | bigint    | Unix timestamp when the ledger was closed           |
| **close\_time\_human**      | string    | Human-readable timestamp when the ledger was closed |
| **close\_time\_resolution** | bigint    | Resolution of the close time in seconds             |
| **close\_time\_iso**        | string    | ISO 8601 formatted close time                       |
| **parent\_close\_time**     | bigint    | Close time of the parent ledger                     |
| **parent\_hash**            | string    | Hash of the parent ledger                           |
| **total\_coins**            | string    | Total XRP supply in the ledger                      |
| **transaction\_hash**       | string    | Hash of the transaction tree                        |
| **closed**                  | boolean   | Whether the ledger is closed                        |
| **transaction\_count**      | bigint    | Number of transactions included in this ledger      |
| **event\_created\_at**      | timestamp | Timestamp when the ledger event was created         |
| **ledger\_close\_date**     | date      | Date when the ledger was closed                     |
| **\_inserted\_at**          | timestamp | Record insertion timestamp                          |
| **\_ingested\_at**          | timestamp | Data ingestion timestamp                            |

## Table Sample

<TableSample tableSchema="xrpl" tableName="ledger" />
