-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
/cosmos/tx/v1beta1/txs endpoints new alternative? #10448
Comments
Hello, Sorry I don't work on Cosmos integration for Ledger anymore, so I didn't really follow the updates on this front. Your best bet is to go through the proto files to see what kind of input the new endpoints take, and see whether you're able to apply the filters as you want. Iirc you'll want to target where the sdk transforms the proto request into the tendermint request for the node, and that should show what kind of filter you can apply. Regards, |
Thanks for your appreciated assistance Gerry, I'll take a more in depth look at it. |
The It has been replaced
Let me know if that solves your issue! |
Thank you @AmauryM for your help. I've tried calling Below are the calls that I've made, the first being the GET https://api.cosmos.network//cosmos/tx/v1beta1/txs?events=tx.height=8215392 Response: {
"txs": [
...
],
"tx_responses": [
{
"height": "8215392",
"txhash": "E010A0985811A96CD154F4D0BB770E4597AA705151D6BC824B2604F21015D65D",
...
}
],
"pagination": {
"next_key": null,
"total": "1"
}
}
GET https://api.cosmos.network//cosmos/tx/v1beta1/txs?events=tx.minheight=8215391 Response: {
"txs": [],
"tx_responses": [],
"pagination": {
"next_key": null,
"total": "0"
}
} Your assistance will be appreciated. |
Dear @AmauryM, Before the depreciation of the previously used methods, to perform the above-outlined tasks, in the next release (0.45) we kindly ask that you please get back to us regarding the Awaiting your helpful response. |
Try it seems that minHeight hasn't been migrated to the new Protobuf endpoints. I created an issue to decide whether we should add that minHeight helper, or use just Closing this issue. |
Issue
Since upgrading our system to
Cosmos SDK v0.42.6 (Gaia v5.0.2 / cosmoshub-4)
we have noticed that some of the endpoints have been depreciated (according to Swagger Docs). For our use purposes these include:height
minheight
Which were previously, and still are, accessible via:
/txs?tx.minheight=25
Our question is, is this support temporary or will they properly be depreciated and implemented in another manner, for example making use of the
cosmos/tx/v1beta1/txs?events=<query>
- where<query>
could look something like<tx.minheight=25>
for example?Similar Issues
It seems that @gagbo or @alexanderbez might be able to help based on the previously mentioned issues.
Version
Cosmos SDK v0.42.6 (Gaia v5.0.2 / cosmoshub-4)
Notes
P.S. This is most likely not considered a "bug", but unfortunately considering the options available when selecting an issue this was the "best fit".
Thanks for your appreciated assistance.
Kind regards,
For Admin Use
The text was updated successfully, but these errors were encountered: