Documentation/Canton Network Docs/Ledger API › gRPC API › Packages › v2.testing › Services › TimeServiceView on Canton Network Docs ↗
GetTime
RPC
/com.daml.ledger.api.v2.testing.TimeService/GetTimeProtocol Details
ProtocolgRPC
ServiceTimeService
RPCGetTime
Client streamNo
Server streamNo
Inputs
GetTimeRequest
Messagecom.daml.ledger.api.v2.testing.GetTimeRequest
Client streamNo
Outputs
GetTimeResponse
Messagecom.daml.ledger.api.v2.testing.GetTimeResponse
Server streamNo
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"
}