Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger API › Protobufs › Packages › com.daml.ledger.api.v2 › Services › StateServiceView on Canton Network Docs ↗

GetLatestPrunedOffsets

Ledger API›Protobuf›com.daml.ledger.api.v2›GetLatestPrunedOffsets

com.daml.ledger.api.v2

GetLatestPrunedOffsets

gRPC
RPC/com.daml.ledger.api.v2.StateService/GetLatestPrunedOffsets

Protocol Details

ProtocolgRPC
ServiceStateService
RPCGetLatestPrunedOffsets
Client streamNo
Server streamNo

Inputs

GetLatestPrunedOffsetsRequest

Messagecom.daml.ledger.api.v2.GetLatestPrunedOffsetsRequest
Client streamNo

Outputs

GetLatestPrunedOffsetsResponse

Messagecom.daml.ledger.api.v2.GetLatestPrunedOffsetsResponse
Server streamNo
participant_pruned_up_to_inclusiveint64
all_divulged_contracts_pruned_up_to_inclusiveint64

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"
}