Documentation/Canton Network Docs/Ledger API › gRPC API › Packages › v2 › Services › StateServiceView on Canton Network Docs ↗
GetLedgerEnd
RPC
/com.daml.ledger.api.v2.StateService/GetLedgerEndProtocol Details
ProtocolgRPC
ServiceStateService
RPCGetLedgerEnd
Client streamNo
Server streamNo
Inputs
GetLedgerEndRequest
Messagecom.daml.ledger.api.v2.GetLedgerEndRequest
Client streamNo
synchronizer_idrepeated stringOutputs
GetLedgerEndResponse
Messagecom.daml.ledger.api.v2.GetLedgerEndResponse
Server streamNo
offsetint64synchronizer_timesrepeated SynchronizerTimeRelated Schemas
com.daml.ledger.api.v2.GetLedgerEndRequest
com.daml.ledger.api.v2.GetLedgerEndRequest
synchronizer_idrepeated stringcom.daml.ledger.api.v2.GetLedgerEndResponse
com.daml.ledger.api.v2.GetLedgerEndResponse
offsetint64synchronizer_timesrepeated SynchronizerTimecom.daml.ledger.api.v2.SynchronizerTime
com.daml.ledger.api.v2.SynchronizerTime
synchronizer_idstringrecord_timeTimestampgrpcurl
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"
}
]
}