# Get ledger

Get a ledger by ID with the TypeScript SDK.

Use `blnk.Ledgers.get` to retrieve a [ledger](/ledgers/general-ledger) by its ledger ID.

<Steps>
<Step title="Call the method">

```typescript blnk.Ledgers.get
const response = await blnk.Ledgers.get(
  'ldg_049495c6-356e-4ebc-a45e-60d1e1e16afb',
);
```

| Field | Type | Description |
| :-- | :-- | :-- |
| `id` | `string` | Ledger ID to retrieve. |
</Step>

<Step title="Use the ledger details">

Read `response.data` for the ledger name, metadata, and creation time. Use these values to confirm you have the correct ledger before creating balances or transactions.

</Step>

<Step title="Response">

```json 200 OK
{
  "ledger_id": "ldg_049495c6-356e-4ebc-a45e-60d1e1e16afb",
  "name": "Customer Checking Ledger",
  "created_at": "2024-11-26T08:23:57.509804Z",
  "meta_data": {
    "project_owner": "Blnk Tech"
  }
}
```

| Field | Type | Description |
| :-- | :-- | :-- |
| `ledger_id` | `string` | Unique ID for the ledger. |
| `name` | `string` | Current display name. |
| `created_at` | `string` | Date and time the ledger was created. |
| `meta_data` | `Record<string, unknown>` | Metadata object, if one was set at creation. |
</Step>
</Steps>