-
Notifications
You must be signed in to change notification settings - Fork 53
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
How to get transaction hash? #30
Comments
+1 |
Any updates on that? Having the same issue |
Nothing :( |
|
There it is: https://tonviewer.com/transaction/72468f5599057f3cc36a75bbddbddba5d3317abc449c117db3b698ed94ba3982 |
I have found a solution
And function
Next, you need to track calls to this function up the tree and pass the hash value For example File @ton/ton/dist/client/TonClient.js (line 195)
File @ton/ton/dist/wallets/WalletContractV3R2.js (line 60)
File @ton/ton/dist/client/TonClient.js (line 407)
If you're using DeDust SDK File @dedust/sdk/dist/contracts/dex/vault/VaultNative.js (line 62)
|
}
} |
I followed your method and i got something back, but one issue the transaction hash differs from the one on the explorer.
in creating my wallet instance i use Do you think there would be a better update in the future, because the lib encounters an error it stops my code from running even when i have a try..catch block |
+1 |
Bro your solution works, thanks man |
How to get transaction hash after I create it with:
and sent with:
await this.client.sendExternalMessage(walletContract, transfer);
When I call
transfer.hash().toString("hex")
, it gives me hash which is different from what I see on tonviewer.The text was updated successfully, but these errors were encountered: