---
title: "GET /v2/state/latest-pruned-offsets"
method: GET
path: "/v2/state/latest-pruned-offsets"
---

# GET /v2/state/latest-pruned-offsets

`GET /v2/state/latest-pruned-offsets`

Get the latest successfully pruned ledger offsets

## Response `200`

- GetLatestPrunedOffsetsResponse
  - `participantPrunedUpToInclusive` integer — It will always be a non-negative integer. If positive, the absolute offset up to which the ledger has been pruned, disregarding the state of all divulged contracts pruning. If zero, the ledger has not been pruned yet. Optional
  - `allDivulgedContractsPrunedUpToInclusive` integer — It will always be a non-negative integer. If positive, the absolute offset up to which all divulged events have been pruned on the ledger. It can be at or before the ``participant_pruned_up_to_inclusive`` offset. For more details about all divulged events pruning, see ``PruneRequest.prune_all_divulged_contracts`` in ``participant_pruning_service.proto``. If zero, the divulged events have not been pruned yet. Optional

## Other responses

- `400` — Invalid value
- `default`

---

[API](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints.md) · [All operations](https://skmtc.dev/canton/apis/json-ledger-api-http-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/canton/json-ledger-api-http-endpoints/revisions/296292e8b8f1/schema)
