> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# GetLatestPrunedOffsets

Ledger API

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

[v2](https://docs.canton.network/reference/grpc-ledger-api-reference/com-daml-ledger-api-v2.md)

›

GetLatestPrunedOffsets

com.daml.ledger.api.v2

# GetLatestPrunedOffsets

gRPC

RPC

`/com.daml.ledger.api.v2.StateService/GetLatestPrunedOffsets`

## Protocol Details

Protocol
gRPC

Service
StateService

RPC
GetLatestPrunedOffsets

Client stream
No

Server stream
No

## Inputs

### GetLatestPrunedOffsetsRequest

Message
com.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest

Client stream
No

## Outputs

### GetLatestPrunedOffsetsResponse

Message
com.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse

Server stream
No

`participant_pruned_up_to_inclusive`
int64

`all_divulged_contracts_pruned_up_to_inclusive`
int64

## Related Schemas

> [accordion] com.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest

> [accordion] com.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse
>
> `participant_pruned_up_to_inclusive`
> int64
>
> `all_divulged_contracts_pruned_up_to_inclusive`
> int64

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.StateService/GetLatestPrunedOffsets <<'EOF'
{}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "participantPrunedUpToInclusive": "0",
  "allDivulgedContractsPrunedUpToInclusive": "0"
}
```
