Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Ledger APIgRPC APIPackagesv2.testingServicesTimeServiceView on Canton Network Docs

SetTime

Ledger APIgRPC APIv2.testingSetTime

com.daml.ledger.api.v2.testing

SetTime

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

Protocol Details

Inputs

SetTimeRequest

current_timeTimestamp
new_timeTimestamp

Outputs

Empty

com.daml.ledger.api.v2.testing.SetTimeRequest

current_timeTimestamp
new_timeTimestamp
grpcurl
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
{}