I have stored a data let's say ABC
in the Ledger and got X123
as a Transaction hash in response. Now, I want to use this transaction hash X123
to fetch the data ABC
from the ledger. I found this package which provides the method QueryTransaction(txn_hash)
and states that QueryTransaction queries the ledger for processed transaction by transaction ID
My questions are:
- Is this a correct method to do the above operation? If no, Please suggest some methods.
If yes, Do I have to use some parsing logic to correctly format it?
Do we have parsing logic or decoder in
go-sdk
likeBlockDecoder
is there innode-sdk
?
the screenshot of the response that I'm getting using this method.