# Ledger | xrpl
Documentation for xrpl

# Interface Ledger

A ledger is a block of transactions and shared state data. It has a unique header that describes its contents using cryptographic hashes.

#### Hierarchy

- Ledger

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:11

#####
Index

### Properties

accountState?
account_hash
close_flags
close_time
close_time_human
close_time_resolution
closed
ledger_hash
ledger_index
parent_close_time
parent_hash
total_coins
transaction_hash
transactions?

## Properties

### `Optional` accountState

accountState?: LedgerEntry []

All the state information in this ledger.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:15

### account_hash

account_hash: string

The SHA-512Half of this ledger's state tree information.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:13

### close_flags

close_flags: number

A bit-map of flags relating to the closing of this ledger.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:17

### close_time

close_time: number

The approximate time this ledger version closed, as the number of seconds since the Ripple Epoch of 2000-01-01 00:00:00. This value is rounded based on the close_time_resolution.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:23

### close_time_human

close_time_human: string

The approximate time this ledger was closed, in human-readable format. Always uses the UTC time zone.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:28

### close_time_resolution

close_time_resolution: number

An integer in the range [2,120] indicating the maximum number of seconds by which the close_time could be rounded.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:33

### closed

closed: boolean

Whether or not this ledger has been closed.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:35

### ledger_hash

ledger_hash: string

The SHA-512Half of this ledger version. This serves as a unique identifier for this ledger and all its contents.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:40

### ledger_index

ledger_index: string

The ledger index of the ledger. Some API methods display this as a quoted integer; some display it as a native JSON number.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:45

### parent_close_time

parent_close_time: number

The approximate time at which the previous ledger was closed.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:47

### parent_hash

parent_hash: string

Unique identifying hash of the ledger that came immediately before this one.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:52

### total_coins

total_coins: string

Total number of XRP drops in the network, as a quoted integer.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:54

### transaction_hash

transaction_hash: string

Hash of the transaction information included in this ledger, as hex.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:56

### `Optional` transactions

transactions?: Object[]

Transactions applied in this ledger version. By default, members are the transactions' identifying Hash strings. If the request specified expand as true, members are full representations of the transactions instead, in either JSON or binary depending on whether the request specified binary as true.

- Defined in packages/xrpl/src/models/ledger/Ledger.ts:64

Generated using TypeDoc