Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to perform temporal queriesForum ↗

How to perform temporal queries

App Development2 posts244 views3 likesLast activity Jun 2022
IL
Illia_UlianovOP
Jun 2022

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!

ST
Stephen
Jun 2022

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.

← Back to Discussions