Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple selection filter #774

Open
sanjay-resp opened this issue Apr 18, 2024 · 0 comments
Open

Multiple selection filter #774

sanjay-resp opened this issue Apr 18, 2024 · 0 comments

Comments

@sanjay-resp
Copy link

In the config below I am trying to get transaction involving specific address and also with metadata as some value. I am not getting transactions that satisfy the metadata criteria.
`[source]
type = "N2N"
address = ["Tcp", "preview-node.world.dev.cardano.org:30002"]
magic = "preview"
min_depth = 2

[intersect]
type = "Tip"

[source.mapper]
include_transaction_details = true

[[filters]]
type = "Selection"

[filters.check]
predicate = "all_of"

[[filters.check.argument]]
predicate = "variant_in"
argument = ["Transaction","Metadata"]

[[filters.check.argument]]
predicate="any_of"

[[filters.check.argument.argument]]
predicate="any_of"

[[filters.check.argument.argument.argument]]
predicate="metadata_any_sub_label_equals"
argument="TEST"

[[filters.check.argument.argument]]
predicate="any_of"
[[filters.check.argument.argument.argument]]
predicate="address_equals"
argument="addr_test1qpvzm0et3d3r80t6ywqld455u2wkd77sm6l6uc87py00hvja9yvy9vp6as908h4x3fq9xjzrdx83gwnvfpgcj3846s2sdnu0lt"

[[filters.check.argument.argument.argument]]
predicate="address_equals"
argument="addr_test1qr9w94fjq5aj4gh2d6gah3n5zt4jvqn4wx462ssxh6hhpunzgn3d2td49pmmgx7edskxgsrrtwajejkceqd7mfm8xc8q45hqex"

[sink]
type = "Terminal"
throttle_min_span_millis = 500
wrap = true`

Also, if possible can you please answer the following questions. Thanks

  1. Is there a way to dynamically add filtering constraints without restating oura daemon ?
  2. Can I not get filter transaction based on the metadata of transaction?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant