DA.ContractKeys
Note: Docs TODO (https://github.com/digital-asset/daml/issues/22673)Module Snapshot
Lifecycle
Stable.
Notices
Status:
active
Introduced in: 3.5.1
Removed in: -
Warnings: 0
Deprecations: 0
Deprecated since: -Functions
lookupNByKey
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.
lookupAllByKey
lookupAllByKey : 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