hello
I wanted to make a function that after the user accepts the transaction
Based on the boc that the sendTransaction method returns, I will measure whether it has been deposited or not
I want to use this in two places
First, after accepting the transaction by the user, check and tell the user whether the transaction was done correctly or not
And secondly, the server side checks whether the transaction is successful or not
If it is successful, it will be added to the user's inventory
I wrote this code and it works
But it has many problems and cannot be used in real programs
I would be grateful if you could help me
Your Question
hello I wanted to make a function that after the user accepts the transaction Based on the boc that the sendTransaction method returns, I will measure whether it has been deposited or not
I want to use this in two places First, after accepting the transaction by the user, check and tell the user whether the transaction was done correctly or not
And secondly, the server side checks whether the transaction is successful or not If it is successful, it will be added to the user's inventory
I wrote this code and it works But it has many problems and cannot be used in real programs I would be grateful if you could help me
Context
i am tying make a online shop can pay with ton
What have you tried so far?
https://medium.com/coinmonks/understanding-ton-transactions-how-to-track-transaction-results-and-utilize-tonclient-b992336eb3a3 https://docs.ton.org/develop/dapps/asset-processing/#check-contracts-transactions
Relevant Code or Commands