-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
All txs for a single block in decoded json #8579
Comments
hey @gotjoshua, have you tried this endpoint? cosmos-sdk/proto/cosmos/tx/v1beta1/service.proto Lines 32 to 35 in a534a96
|
Thanks for your reply @amaurymartiny,
i had not, but did now: is that an incorrect URL for a local node (i'm running a regen testnet validator) ? also how can i designate a specific block on that endpoint? ( docs say "event query" )? |
This is great proposal which can save us allot of time @gotjoshua Can we get please link to docummentation to read more abot this end point? @amaurymartiny |
It should be on the REST port (1317 by default). Make sure grpc-gateway is enabled too.
As long as other networks use cosmos sdk 0.41, it will be v1beta1. The endpoint version might change in future releases of the SDK though.
The swagger endpoint should give decent documentation of the different endpoints. |
curl -X GET "http://localhost:1317/swagger" -H "accept: application/json"
{
"code": 12,
"message": "Not Implemented",
"details": [
]
} curl -X GET "http://localhost:1317/cosmos/tx/v1beta1/txs" -H "accept: application/json"
{
"code": 12,
"message": "Not Implemented",
"details": [
]
} |
Try Which node are you using? If regen-ledger, try after this PR. If another node, make sure the TX service is wired up, as well as grpc-gateway routes for it. |
regen (in the testnet on 0.6.0 - so not exactly gonna do an early update)... also, in order to try that PR i would need to build from source, right? Will that PR be in the 0.6.1 release? also, also, I still don't see how this endpoint can solve this issue... |
Yes. If you don't want to build it, you can either use gRPC, or use the CLI
Same as before, so |
amazing! that is already working in 0.6.0!
what i don't get is the hard cap at 100txs (even if i set --limit to 5000) |
Here is a gist using the cli to summarize memos for a block: Thanks @AmauryM !! |
This is not working anymore as of 0.42.2 |
@crussell-figure Could you create a new issue with exact repro steps? I'm not sure what you're referring to, in this issue we talked abotu CLI, REST and gRPC. |
Summary
foocli query txs -b <block-height>
should be a thing.Problem Definition
It is slow and annoying to get all txs for a specific block in usable readable json.
I can do two steps like in this gist:
and then loop through the hashes and get each one by one
foocli query tx $eachHash
but that feels bogus and mega inefficient
ref:
#5453
Proposal
We need a single cli command that returns all txs for a single block in decoded json.
For Admin Use
The text was updated successfully, but these errors were encountered: