Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger API › gRPC API › Packages › v2 › Services › StateServiceView on Canton Network Docs ↗

GetLedgerEnd

Ledger API›gRPC API›v2›GetLedgerEnd

com.daml.ledger.api.v2

GetLedgerEnd

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

Protocol Details

ProtocolgRPC
ServiceStateService
RPCGetLedgerEnd
Client streamNo
Server streamNo

Inputs

GetLedgerEndRequest

Messagecom.daml.ledger.api.v2.GetLedgerEndRequest
Client streamNo
synchronizer_idrepeated string

Outputs

GetLedgerEndResponse

Messagecom.daml.ledger.api.v2.GetLedgerEndResponse
Server streamNo
offsetint64
synchronizer_timesrepeated SynchronizerTime

com.daml.ledger.api.v2.GetLedgerEndRequest

synchronizer_idrepeated string

com.daml.ledger.api.v2.GetLedgerEndResponse

offsetint64
synchronizer_timesrepeated SynchronizerTime

com.daml.ledger.api.v2.SynchronizerTime

synchronizer_idstring
record_timeTimestamp
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.StateService/GetLedgerEnd <<'EOF'
{
  "synchronizerId": [
    "string"
  ]
}
EOF
OKapplication/json
OK
{
  "offset": "0",
  "synchronizerTimes": [
    {
      "synchronizerId": "string",
      "recordTime": "string"
    }
  ]
}