Skip to content
Documentation/canton-network-docs/Ledger APIgRPC APIPackagesv2ServicesStateServiceView on canton-network-docs
canton-network-docs/Ledger APIgRPC APIPackagesv2ServicesStateService

GetLedgerEnd

Ledger APIgRPC APIv2GetLedgerEnd

com.daml.ledger.api.v2

GetLedgerEnd

gRPCSince 3.4.4
RPC/com.daml.ledger.api.v2.StateService/GetLedgerEnd

Protocol Details

Inputs

GetLedgerEndRequest

Outputs

GetLedgerEndResponse

offsetint64

Lifecycle Changes

3.4.4introduced

com.daml.ledger.api.v2.GetLedgerEndRequest

com.daml.ledger.api.v2.GetLedgerEndResponse

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