Documentation/Canton Network Docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeServiceView on Canton Network Docs ↗
GetTime
RPC
/com.daml.ledger.api.v2.testing.TimeService/GetTimeProtocol Details
Inputs
GetTimeRequest
Outputs
GetTimeResponse
current_timeTimestampRelated Schemas
com.daml.ledger.api.v2.testing.GetTimeRequest
com.daml.ledger.api.v2.testing.GetTimeRequest
com.daml.ledger.api.v2.testing.GetTimeResponse
com.daml.ledger.api.v2.testing.GetTimeResponse
current_timeTimestampgrpcurl
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"
}