Documentation/Canton Network docs/Ledger API › Protobufs › Packages › com.daml.ledger.api.v2.testing › Services › TimeServiceView on Canton Network docs ↗
SetTime
RPC
/com.daml.ledger.api.v2.testing.TimeService/SetTimeProtocol Details
ProtocolgRPC
ServiceTimeService
RPCSetTime
Client streamNo
Server streamNo
Inputs
SetTimeRequest
Messagecom.daml.ledger.api.v2.testing.SetTimeRequest
Client streamNo
current_timeTimestampnew_timeTimestampOutputs
Empty
Messagegoogle.protobuf.Empty
Server streamNo
Related Schemas
com.daml.ledger.api.v2.testing.SetTimeRequest
com.daml.ledger.api.v2.testing.SetTimeRequest
current_timeTimestampnew_timeTimestampgrpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
-d @ \
<HOST:PORT> \
com.daml.ledger.api.v2.testing.TimeService/SetTime <<'EOF'
{
"currentTime": "string",
"newTime": "string"
}
EOF
OKapplication/json
OK
{}