Control Ledger time in sandbox

I want to progress the ledger time in sandbox. Think of a daml finance reference app, and i want to show life-cycling a bond more than once. For that i need to progress the ledger date. What is the best way to do this?

You need to enable simtime in your Canton config with something like this:

canton {
  parameters {
    clock.type = sim-clock
  }
  participants {
    participant {
      testing-time.type = monotonic-time
     …
    }
  }
}

You can then control time using the time service also exposed as setTime in Daml script or participant.ledger_api.time.set in the Canton console.

1 Like