Filters in gRPC API and action consequences
- oggyOP 1
The
docs.daml.comgRPCAPI exposes a filtering mechanism for subscriptions:Ledger API Reference — DAML SDK 1.7.0 documentation
Say I use a filter in
GetTransactionsRequestthat specifies only a single partyPand a single templateT, and there’s an exercise event on some instance ofTwithPas an informee. If the exercise has consequences on other templates, will I receive those consequences? - cocreature 1
The gRPC filter does not take consequences into account. That’s one of the reasons why the transaction tree doesn’t have any template filtering. A forest where you randomly select a few nodes by template without taking consequences into account will no longer be connected.
- oggy 1
cocreature:That’s one of the reasons why the transaction tree doesn’t have any template filtering.
I’m not sure what you mean here; you can definitely specify a filter for tx trees as both flat and full transactions use the same request type. Are you saying that the provided filter is completely ignored for transaction trees?
- stefanobaghino-da 1
Not completely. Only the parties from the filter are taken into account.
- cocreature 2
It’s not just ignored, you will get an error if you specify templates daml/TransactionServiceRequestValidator.scala at 7bea34955ed6605827204f7ef9758b0d44140640 · digital-asset/daml · GitHub.