Skip to content
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

API getTransactions returns message.hash #70

Open
i-xiaov opened this issue Nov 1, 2022 · 2 comments
Open

API getTransactions returns message.hash #70

i-xiaov opened this issue Nov 1, 2022 · 2 comments

Comments

@i-xiaov
Copy link

i-xiaov commented Nov 1, 2022

I'm using in_msg.hash to identify a transaction that sent from my own wallet as it is immutable and can be searched by on explorer https://tonscan.org . But when I indexing transactions, I can't find message.hash in any API and it hard to caculate for me.
Is it possible to support message.hash in getTransactions? Or is there any other solution should I take?

@slavafomin
Copy link

Looks like a good idea. We will see if it's possible to implement.

However, for now you can use the in_msg.body_hash for this. Just calculate the cell hash of your message's body locally and use it to match transaction from the getTransactions.

@ZhangYiQiu
Copy link

Looks like a good idea. We will see if it's possible to implement.

However, for now you can use the in_msg.body_hash for this. Just calculate the cell hash of your message's body locally and use it to match transaction from the getTransactions.

I used this library https://github.com/continuation-team/TonSdk.NET .
And got the cell hash, but it same as in_msg.hash, not same in_msg.body_hash, but unfortunately getTransactions did not return in_msg.hash

This is cell hash of message's body locally.
image

This is getTransactions in_msg.body_hash.
image

This is testnet.tonscan.org in_msg.hash.
image

This is the api interface data for the testnet.tonscan.org call.
https://testnet.toncenter.com/api/index/getTransactionByInMessageHash?msg_hash=xxx
image

This data is very confusing to me and I have no way of knowing exactly which piece of data in getTransactions is the transaction that happened to me. Other blockchains make it very easy to get transaction hash, I don't know why TON Network is so difficult!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants