[SDK reference](../../index.md) / [Models](../index.md) / [Ledgers](index.md)

# Ledger

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Ledgers`  

A tamper-evident ledger.

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `CreateTime` | `DateTimeOffset?` | `createTime` | The createTime property |
| `DeletableTime` | `DateTimeOffset?` | `deletableTime` | The earliest time the ledger may be deleted: the last append (or the creation) plus the retention. |
| `DeleteTime` | `DateTimeOffset?` | `deleteTime` | The deleteTime property |
| `Description` | `string?` | `description` | Up to 256 characters. |
| `Etag` | `string?` | `etag` | The etag property |
| `Head` | `Models.Ledgers.SignedTreeHead?` | `head` | The newest signed tree head, or, once the ledger is deleted, the final one the platform keeps. |
| `LastAppendTime` | `DateTimeOffset?` | `lastAppendTime` | The last append, unset for an empty ledger. |
| `Name` | `string?` | `name` | projects/{project}/locations/{location}/ledgers/{ledger}. |
| `RetentionDays` | `int?` | `retentionDays` | How long after its last append the ledger may be deleted, 7 to 3650 days (default 30; a week is the platform's floor, so a ledger cannot be deleted at once). A longer retention cannot be shortened later. |
| `State` | `Models.Ledgers.LedgerState?` | `state` | Ledger states. |
| `StoredBytes` | `long?` | `storedBytes` | Total bytes of payloads kept (the stored-GiB meter). |
| `TreeSize` | `long?` | `treeSize` | The number of entries; the next entry's `seq` is this plus one. |
| `Uid` | `string?` | `uid` | The uid property |
