there is another problem with sending the transaction. i use TONCENTER and sendBocReturnHash api to send the transaction.
so i get hash of the transaction. but this hash is for input of the transaction. not for the transaction. for example:

i got hash="1jB29o5zqO2Rz7F5yBvAk8fm1qWUJHaNurI33z52TV0=" from sendBocReturnHash.

but when i open the transaction in the explorer:
https://testnet.tonscan.org/tx/by-msg-hash/1jB29o5zqO2Rz7F5yBvAk8fm1qWUJHaNurI33z52TV0=

transaction is "vuyKeoni0Bz19JzNs9znYgREBn51ByGDjy6d7++sh74=".
what's wrong? how get this hash?

May 15, 2023, 12:11 PM
Tx hash is hash of transaction cell
Tonconnect hash is hash of transaction inMessage
May 15, 2023, 12:12 PM
So? Is the result correct? Should i do anything?
Could you explain more plz? What hash should I save as the transaction hash?
May 15, 2023, 12:14 PM
sendBocReturnHash returns hash of the message you sent. With that hash you can find the triggered transaction (and it's hash) at tonscan or using index API: https://toncenter.com/api/index/#/default/get_transaction_by_in_message_hash_v1_getTransactionsByInMessageHash_get
May 15, 2023, 1:47 PM

© 2024 Draquery.com All rights reserved.