Offsets and datetime

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.

1 Like

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

2 Likes

Thanks @oliverse.

Weā€™re currently relying on client applications to keep track of LET-Offset mappings and using that to determine the right offset.

1 Like