Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network docs/Ledger API › Protobufs › Packages › com.daml.ledger.api.v2.testing › Services › TimeServiceView on Canton Network docs ↗

SetTime

Ledger API›Protobuf›com.daml.ledger.api.v2.testing›SetTime

com.daml.ledger.api.v2.testing

SetTime

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

Protocol Details

ProtocolgRPC
ServiceTimeService
RPCSetTime
Client streamNo
Server streamNo

Inputs

SetTimeRequest

Messagecom.daml.ledger.api.v2.testing.SetTimeRequest
Client streamNo
current_timeTimestamp
new_timeTimestamp

Outputs

Empty

Messagegoogle.protobuf.Empty
Server streamNo

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