How can I track whether users, who are using TonConnect on my frontend pages, are sending a transaction to my contract or not?

And how can I receive a success or failed fallback? (I set difference code error codes in my code for sure)

I need to know whether the transaction was successful or ran out of gas, etc., so that I can display the corresponding pop-up window to the user.

Mar 21, 2023, 3:05 AM
you can use explorers' apis and monitor the contract address for incoming transactions from your user
tonapi even has SSE for such cases
Mar 21, 2023, 7:16 AM
SSE?
Mar 21, 2023, 7:41 AM
server-sent events
Mar 21, 2023, 7:43 AM

© 2024 Draquery.com All rights reserved.