Skip to content
Discussions/App Development/How to query contracts from ledger with a limit?Forum ↗

How to query contracts from ledger with a limit?

App Development5 posts515 views7 likesLast activity Oct 2020
NA
nandansvOP
Oct 2020

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 !

LU
Luciano
Oct 2020

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

NA
nandansv
Oct 2020

@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 ?

CO
cocreature
Oct 2020

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.

NA
nandansv
Oct 2020

@cocreature Great ! Thank you for immediate response.

← Back to Discussions