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

GetTxsEvent cannot filter transactions using multiple conditions #3531

Open
YuXiaoCoder opened this issue Feb 9, 2025 · 0 comments
Open
Labels
status: waiting-triage This issue/PR has not yet been triaged by the team.

Comments

@YuXiaoCoder
Copy link

YuXiaoCoder commented Feb 9, 2025

Problem

I want to filter the list of transactions with the following criteria
transfer.recipient=‘cosmos10v2gu0vvdeuv8pexnl98lmyva4cq8jkaa4845c'withdraw_rewards.validator=’ cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn'

Closing criteria

I can do the filtering individually with success, but the combination of multiple criteria together fails

  1. https://cosmos-api.polkachu.com/cosmos/tx/v1beta1/txs?query=transfer.recipient='cosmos10v2gu0vvdeuv8pexnl98lmyva4cq8jkaa4845c'
  2. https://cosmos-api.polkachu.com/cosmos/tx/v1beta1/txs?query=withdraw_rewards.validator='cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn'
  3. https://cosmos-api.polkachu.com/cosmos/tx/v1beta1/txs?query=withdraw_rewards.validator='cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn'&limit=3
  4. http://cosmos-api.polkachu.com/cosmos/tx/v1beta1/txs?query=transfer.recipient='cosmos10v2gu0vvdeuv8pexnl98lmyva4cq8jkaa4845c' AND withdraw_rewards.validator='cosmosvaloper1clpqr4nrk4khgkxj78fcwwh6dl3uw4epsluffn'

Problem details

The API documentation I refer to is https://docs.cosmos.network/api#tag/Service/operation/GetTxsEvent, Is it possible that I've specified the multiple conditions in the wrong way, and it's causing the filtering to fail

@YuXiaoCoder YuXiaoCoder added the status: waiting-triage This issue/PR has not yet been triaged by the team. label Feb 9, 2025
@github-project-automation github-project-automation bot moved this to 🩹 F1: Triage in Cosmos Hub Feb 9, 2025
@YuXiaoCoder YuXiaoCoder changed the title GetTxsEvent cannot filter transactions using multiple conditions and cannot specify paging parameters. GetTxsEvent cannot filter transactions using multiple conditions Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-triage This issue/PR has not yet been triaged by the team.
Projects
No open projects
Status: 🩹 F1: Triage
Development

No branches or pull requests

1 participant