Hello Team,
I am looking for a way to filter active contracts by the contract key in Canton console but no sure how to do that.
And I took a look on ledger_api.acs.filter but doesn’t sound there is way to do with this api. Can you advise please?
participant1.ledger_api.acs.help("filter")
filter(partyId: com.digitalasset.canton.topology.PartyId, templateCompanion: com.daml.ledger.client.binding.TemplateCompanion[T], predicate: com.daml.ledger.client.binding.Contract[T] => Boolean): (partyId: com.digitalasset.canton.topology.PartyId, templateCompanion: com.daml.ledger.client.binding.TemplateCompanion[T], predicate: com.daml.ledger.client.binding.Contract[T] => Boolean): Seq[com.daml.ledger.client.binding.Contract[T]]
To use this function, ensure a code-generated Scala model for the target template exists.
You can refine your search using the `predicate` function argument.
thanks
Dorrit