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

What does asset_equals do? #568

Open
rmgaray opened this issue Apr 1, 2023 · 1 comment
Open

What does asset_equals do? #568

rmgaray opened this issue Apr 1, 2023 · 1 comment

Comments

@rmgaray
Copy link

rmgaray commented Apr 1, 2023

The latest documentation for filters says:

asset_equals (string): This predicate will yield true when the policy of a mint or output asset matches the value in the argument.

This is exactly the same description as the one for policy_equals, it looks like a mistake. It is not clear to me if this is the token name (whether in ASCII or hex-encoded) or perhaps the asset ID. Or maybe it is just another name for policy_equals?

I am trying to find out if Oura can filter asset output events on the token name (and not its policy).

@rmgaray
Copy link
Author

rmgaray commented Apr 1, 2023

I just tested with an NFT and it seems to match on the token name (hex-encoded). It might be a good idea to fix the documentation.

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