-
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
Provide TX uids #318
Comments
We need this for the block explorer in the UI, so users can search for specific transactions. |
curl 'localhost:46657/block_results?height=10'
curl "localhost:46657/tx?hash=0x2B8EC32BA2579B3B8606E42C06DE2F7AFA2556EF"
curl "localhost:46657/tx_search?query=\"account.owner='Ivan'\"&prove=true" |
@faboweb The "UID" for a tx is its RipeMD160 hash, 20 bytes. |
Just a question for understanding: |
The wallet/client should generate two transactions that have 2 different signatures... each time the wallet signs, it should increment the nonce, which is included in the StdSignature structure. See https://github.com/cosmos/cosmos-sdk/blob/sdk2/types/signature.go#L8 |
Thx for the clarification! |
The SDK REST endpoint doesn't return neither the hash nor the nonce:
Could this endpoint include the hash? |
Yes it could. Perhaps @ethanfrey or @mappum can help add this - should be quite straight forward. Otherwise I can probably get to it in about 12 hours |
@faboweb is this done ? |
It sadly isn't. I will get to it asap. |
@melekes Can I use the
In the Also from the
Is there a way the tx in the |
this depends on whenever indexer is configured to index these tags (or all tags).
yes. these are base64 encoded strings https://play.golang.org/p/wJda6NWSQMi encTag := "ZGVzdGluYXRpb24tdmFsaWRhdG9y"
tag, _ := base64.StdEncoding.DecodeString(encTag)
fmt.Printf("tag: %q\n", tag)
// -> tag: "original-validator" |
same. base64 encoded raw bytes, but only application knows how to decode them (tendermint is not aware of transaction format) |
Thank you! It's very clear now. |
* Add approximate emit / query log interface * Fix the syntax linter, ugh * Call "emitLogEntry" * Add packets received relay * Add a bit of an explanation
* test: use target height duration in network tests * wait a factor of the target height duration
To be able to request detailed information on txs and to be able to organize txs client side, it would be great to have uids per tx.
The text was updated successfully, but these errors were encountered: