Can I issue the equivalents of `setTime` and `passTime` Daml Script commands via grpcurl?

Based on this part of the docs I would think that this is possible but couldn’t find an example in the docs:

setTime

: HasCallStack => Time → Script ()

Set the time via the time service.

This is only supported in static time mode when running over the gRPC API and in Daml Studio.

Note that the ledger time service does not support going backwards in time. However, you can go back in time in Daml Studio.

passTime

: RelTime → Script ()

Advance ledger time by the given interval.

Only supported in static time mode when running over the gRPC API and in Daml Studio. Note that this is not an atomic operation over the gRPC API so no other clients should try to change time while this is running.

Note that the ledger time service does not support going backwards in time. However, you can go back in time in Daml Studio.

Yes, you can use GetTime and SetTime from the TimeService.

1 Like

Thank you, Stephen!