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

enable searching by multiple address roles #210

Closed
jeapostrophe opened this issue Oct 1, 2020 · 7 comments
Closed

enable searching by multiple address roles #210

jeapostrophe opened this issue Oct 1, 2020 · 7 comments

Comments

@jeapostrophe
Copy link

At it is, I cannot construct a query that that mentions two different addresses for different purposes.

@winder
Copy link
Contributor

winder commented Oct 15, 2020

@jeapostrophe it's going to be easier to prioritize these if you describe the use case that you're having trouble with. Could you describe what you're trying to do so that I can better understand this request?

Maybe you're trying to search for transactions between two particular accounts? For example all transactions from account A to account B? There currently isn't a good way to do that.

Also, the sender and receiver roles are abstractions. For example "receiver" means the address matches payment receiver, asset receiver, payment close-to or asset close-to. How would you expect the proposed fields to act in these cases?

@jeapostrophe
Copy link
Author

This abstraction of "sender" and "receiver" is not useful to me. I want to query the actual transaction parameters, as documented here --- https://developer.algorand.org/docs/reference/transactions/#common-fields-header-and-type

So when I say "sender", I mean the "snd" parameter in the codec. I don't mean the "asset sender", or the "asnd" parameter.

@winder
Copy link
Contributor

winder commented Oct 21, 2020

You can search for the "snd" parameter by using the "sender" address-role and setting the transaction type to "pay".

@jeapostrophe
Copy link
Author

Yes, thanks @winder. The problem is that I need to check the sender AND the receiver, but as I understand it, the way that the indexer works right now you can only use one address in one way. My request in this issue is to just expose all of the fields directly in the query API so I can craft my only query for whichever parameters of transactions I care about.

@algoanne algoanne changed the title remove addressRole and just have sender, receiver, etc enable searching by multiple address roles Jan 20, 2022
@algoanne algoanne added Team Lamprey and removed FDE labels Jan 20, 2022
@gidonkatten
Copy link

I would like the ability to specify two addresses as well, for the sender and receiver

@gidonkatten
Copy link

Any updates on this?

@k13n
Copy link

k13n commented Dec 8, 2022

Having the possibility to specify two addresses (sender & receiver) would indeed be helpful!

@gmalouf gmalouf closed this as not planned Won't fix, can't repro, duplicate, stale May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants