Skip to content
Documentation/canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeServiceView on canton-network-docs
canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeService

GetTime

Ledger APIProtobufcom.daml.ledger.api.v2.testingGetTime

com.daml.ledger.api.v2.testing

GetTime

gRPCSince 3.4.0
RPC/com.daml.ledger.api.v2.testing.TimeService/GetTime

Protocol Details

Inputs

GetTimeRequest

Outputs

GetTimeResponse

current_timeTimestamp

Lifecycle Changes

3.4.0introduced

com.daml.ledger.api.v2.testing.GetTimeRequest

com.daml.ledger.api.v2.testing.GetTimeResponse

current_timeTimestamp
grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.testing.TimeService/GetTime <<'EOF'
{}
EOF
OKapplication/json
OK
{
  "currentTime": "string"
}