How to query contracts from ledger with a limit?

I have tried v1/stream/query and v1/query to query contracts from Ledger .

This will return all qualified active contracts as per query condition. I would like to retrieve only few records at a time just like using LIMIT in SQL query. Do i have such feature in DAML?

If yes, could someone please point me to right documentation. I have gone through documentation site and did not find anything relevant to what i am looking for !!

Any help would be appreciated !

2 Likes

Somebody asked this question internally yesterday, luckily for you :grin: This is apparently an open issue: Support for paginated queries in JSON API · Issue #6595 · digital-asset/daml · GitHub

2 Likes

@Luciano That’s Great ! I see this issue was opened sometime around Jul.
Just Curious about expected rollout timelines. Could you please share if you have any information about this issue ?

1 Like

Unfortunately, we don’t have a timeline for this feature atm. We’ll get back to you as soon as we can provide more details.

1 Like

@cocreature Great ! Thank you for immediate response.

1 Like