Skip to content
Documentation/canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeServiceView on canton-network-docs
canton-network-docs/Ledger APIProtobufsPackagescom.daml.ledger.api.v2.testingServicesTimeService

SetTime

Ledger APIProtobufcom.daml.ledger.api.v2.testingSetTime

com.daml.ledger.api.v2.testing

SetTime

gRPCSince 3.4.0
RPC/com.daml.ledger.api.v2.testing.TimeService/SetTime

Protocol Details

Inputs

SetTimeRequest

current_timeTimestamp
new_timeTimestamp

Outputs

Empty

Lifecycle Changes

3.4.0introduced

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
{}