# Ledger

`GET /wallets/{address}/ledger`

**Request**

```http
GET /wallets/01a1f8d3-ea7b-7a12-8b34-56789abcdef0/ledger
```

| Input | Meaning and format |
| --- | --- |
| `address` | Wallet address. UUIDv7 (RFC 9562), lowercase, 36 characters. |
| `cursor` | Optional query parameter. Use `meta.pagination.next` to continue. String. |

Up to 100 entries per page.

**Response: `200 OK`**

This example tracks a wallet’s synthetic funds and simulated holdings.

1. Mine 1.003285026636055158 synthetic USD.
2. Buy 0.001 AAPL for 0.24937 USD.
3. Sell 0.001 AAPL for 0.25143 USD.
4. Mint 0.0015 QUARTZ with 0.0015 USD.
5. Transfer 0.001 QUARTZ to another wallet.

```json
{
  "meta": {
    "network": "rehearsal",
    "at": "2026-11-20T15:25:30.123000000Z",
    "pagination": {
      "next": null
    }
  },
  "data": {
    "public": [
      {
        "transaction": "01a1f98e-aefb-7a12-8b34-56789abcdef0",
        "reference": "00aB",
        "operation": "transfer",
        "from": "01a1f8d3-ea7b-7a12-8b34-56789abcdef0",
        "to": "01a1f8d3-ea7b-7a12-8b34-56789abcdef1",
        "asset": {
          "id": "QUARTZ",
          "units": "-0.001"
        },
        "created_at": "2026-11-20T15:24:00.123000000Z"
      },
      {
        "transaction": "01a1f98c-da3b-7300-87a1-000000000002",
        "reference": null,
        "operation": "mint",
        "operation_id": "1795188120123000000",
        "asset": {
          "id": "QUARTZ",
          "units": "0.0015"
        },
        "created_at": "2026-11-20T15:22:00.123000002Z"
      },
      {
        "transaction": "01a1f98c-da3b-7300-87a1-000000000001",
        "reference": null,
        "operation": "mint",
        "operation_id": "1795188120123000000",
        "asset": {
          "id": "fiat-USD",
          "units": "-0.0015"
        },
        "created_at": "2026-11-20T15:22:00.123000000Z"
      },
      {
        "transaction": "01a1f98b-057b-7d45-be67-89abcdef0002",
        "reference": null,
        "operation": "trade",
        "operation_id": "1795188000123000000",
        "asset": {
          "id": "fiat-USD",
          "units": "0.25143"
        },
        "created_at": "2026-11-20T15:20:00.123000001Z"
      },
      {
        "transaction": "01a1f98b-057b-7d45-be67-89abcdef0001",
        "reference": null,
        "operation": "trade",
        "operation_id": "1795188000123000000",
        "asset": {
          "id": "US-AAPL",
          "units": "-0.001"
        },
        "created_at": "2026-11-20T15:20:00.123000000Z"
      },
      {
        "transaction": "01a1f986-719b-7c34-ad56-789abcdef002",
        "reference": null,
        "operation": "trade",
        "operation_id": "1795187700123000000",
        "asset": {
          "id": "US-AAPL",
          "units": "0.001"
        },
        "created_at": "2026-11-20T15:15:00.123000001Z"
      },
      {
        "transaction": "01a1f986-719b-7c34-ad56-789abcdef001",
        "reference": null,
        "operation": "trade",
        "operation_id": "1795187700123000000",
        "asset": {
          "id": "fiat-USD",
          "units": "-0.24937"
        },
        "created_at": "2026-11-20T15:15:00.123000000Z"
      },
      {
        "transaction": "01a1f8d4-d4db-8a12-8b34-56789abcdef1",
        "reference": null,
        "operation": "mine",
        "asset": {
          "id": "fiat-USD",
          "units": "1.003285026636055158"
        },
        "created_at": "2026-11-20T12:05:00.123000000Z"
      }
    ]
  }
}
```

| Output | Meaning and format |
| --- | --- |
| `transaction` | Ledger entry reference. UUIDv7 or UUIDv8 (RFC 9562), lowercase, 36 characters. |
| `reference` | Always present. Both wallets show the payer’s exact value and JSON type for a transfer. Transfers without a reference and all mining, trade, and mint entries show `null`. |
| `operation` | `mine`, `trade`, `mint`, or `transfer`. |
| `operation_id` | Opaque string shared by both public entries of a trade or mint, even across pages. Omitted for other operations. Scope comparisons to the selected network. |
| `from` | Sending wallet address for transfers. UUIDv7 (RFC 9562), lowercase, 36 characters. |
| `to` | Receiving wallet address for transfers. UUIDv7 (RFC 9562), lowercase, 36 characters. |
| `asset.id` | Stored asset ID, up to 128 UTF-8 bytes. Current forms are `QUARTZ`, `fiat-USD`, `US-{symbol}` and `crypto-{symbol}`. Older records keep their original IDs. |
| `asset.units` | Change in asset units. Plain decimal string, up to 18 decimal places; no trailing fractional zeros. Positive adds units; negative removes units. Maximum absolute value `340282366920938463463.374607431768211455`. |
| `created_at` | Entry recording time. RFC 3339 (ISO 8601 profile), UTC (`Z`), exactly 9 fractional digits. |
| `network` | Selected network. String. |
| `at` | Response time. RFC 3339 (ISO 8601 profile), UTC (`Z`), exactly 9 fractional digits. |
| `pagination.next` | Cursor for the next page. String, or `null` when no more entries remain. |
