How to perform temporal queries

Hi DAML community. I am trying to find out on how to perform temporal queries on contracts (e.g. what was the ACS yesterday at 16:00). Could not find any docs showing that. Is it possible to perform such queries at all?

Thanks!

Neither the Ledger API nor the JSON API supports temporal queries. The ACS in the Ledger API is an optimization for “catching up” to the current ledger end rather than using the transaction stream, not a highly flexible query mechanism.

As such, you’ll need to reproduce prior ACSes yourself via the transaction stream.

3 Likes