gno
gno copied to clipboard
Tx Hash not usable in the node RPC
Tx Hash not usable in the node RPC
Description
When you make a tx:
- The hash for the tx is not hex encoded
- The hash can't be used to check it in the node rpc, no matter if it's hex or not.
Your environment
- MacOS Sonoma 14.5
- latest (built from the commit 3b42391db98f7be35a99f9a060b589f6b69fd3e3)
- main
Steps to reproduce
- Make a tx with Adena wallet.
- Get the resulting hash.
- Try to use the endpoint
http://127.0.0.1:26657/tx?hash=_
and substitute it with the hash.
Expected behaviour
The output when accessing that path should be the content of this tx.
Actual behaviour
{
"jsonrpc": "2.0",
"id": "",
"error": {
"code": -32603,
"message": "Internal error",
"data": "Could not find tx result for hash #[hash in hex format]"
}
}
Proposed solution
I'm currently checking how is this done to give an alternative. Will add an alternative once I understand where it appears