Control Ledger time in sandbox
App Development2 posts152 views1 likesLast activity Nov 2023
AS
Ashok_RajOP
Nov 2023I 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?
CO
cocreature
Nov 2023 1You 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.