Daml
DA.ContractKeys
DA.ContractKeys
Note: Docs TODO (https://github.com/digital-asset/daml/issues/22673)
Functions
lookupNByKey: HasLookupNByKey t k => Int -> k -> Update [(ContractId t, t)]
Look up up to n contracts associated with the passed key. Contracts created within a transaction are returned first (in recency order), then disclosed contracts, then nonlocal contracts.
You must pass the t using an explicit type application. For instance, if
you want to query 3 contracts of template Account given by its key k, you
must call `lookupNByKey @Account 3 k.
: HasLookupNByKey t k => k -> Update [(ContractId t, t)]
Shorthand for lookupNByKey with n larger than the amount of contracts that
can exist for a key (1000000), therefore returning all contracts