Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Control Ledger time in sandboxForum ↗

Control Ledger time in sandbox

App Development2 posts147 views1 likesLast activity Nov 2023
AS
Ashok_RajOP
Nov 2023

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?

CO
cocreature
Nov 2023

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.

← Back to Discussions