Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger API › gRPC API › Packages › v2.testing › Services › TimeServiceView on Canton Network Docs ↗

GetTime

Ledger API›gRPC API›v2.testing›GetTime

com.daml.ledger.api.v2.testing

GetTime

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

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