Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeServiceView on Canton Network Docs

GetTime

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

com.daml.ledger.api.v2.testing

GetTime

gRPC
RPC/com.daml.ledger.api.v2.testing.TimeService/GetTime

Protocol Details

Inputs

GetTimeRequest

Outputs

GetTimeResponse

current_timeTimestamp

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