Is there a way to find an offset that has a particular LET or near a particular date/time?
At the moment there isn’t but I believe it is planned. @oliverse can probably tell you more about it.
Hello Piyush,
The desire to associate an offset with a specified time has come up before, and we have previously considered adding a GetOffsetByTime
lookup to the TransactionService
or CompletionService
, but decided to wait until we define the semantics between time and offsets better for example in the context of deduplication.
One specific, slightly narrower area in which the need has emerged is ledger pruning in which the operator has a clearer understanding of “time” rather than “offsets”. To unblock admin operators, canton exposes a preview admin command that you may want to take a look at, Piyush, to see if something like the following might satisfy the need: Canton Console — Canton 0.27.0 documentation
Thanks @oliverse.
We’re currently relying on client applications to keep track of LET-Offset mappings and using that to determine the right offset.