Skip to content
Documentation/canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2ServicesStateServiceView on canton-network-docs
canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2ServicesStateService

GetLatestPrunedOffsets

Ledger APIProtobufcom.daml.ledger.api.v2GetLatestPrunedOffsets

com.daml.ledger.api.v2

GetLatestPrunedOffsets

gRPCSince 3.4.0
RPC/com.daml.ledger.api.v2.StateService/GetLatestPrunedOffsets

Protocol Details

Inputs

GetLatestPrunedOffsetsRequest

Outputs

GetLatestPrunedOffsetsResponse

participant_pruned_up_to_inclusiveint64
all_divulged_contracts_pruned_up_to_inclusiveint64

Lifecycle Changes

3.4.0introduced

com.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest

com.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse

participant_pruned_up_to_inclusiveint64
all_divulged_contracts_pruned_up_to_inclusiveint64
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.StateService/GetLatestPrunedOffsets <<'EOF'
{}
EOF
OKapplication/json
OK
{
  "participantPrunedUpToInclusive": "0",
  "allDivulgedContractsPrunedUpToInclusive": "0"
}