Hi, is there a way to fast-track pending transactions for my contract that allows everyone to mint NFTs? We would like to track these transactions and display them on our website or front-end.
The problem is that the TonCenter API is not fast enough to send messages to the user's front-end side. Users will obviously notice if there are a few seconds without any change on the page and won't know if their transaction was sent successfully.
Mar 6, 2023, 9:36 AM
👀
Mar 6, 2023, 12:22 PM
1. In general, you have to wait 15-25 s before transaction is shown in API (that's for mainnet, and testnet was even slower at the time I was checking it).
2. You can use event streams from tonapi.io, and possibly track user's wallet instead of your contract.
3. If you use TON Connect 2.0, you can receive BOC of external message that has been sent; you may track existence of such message in blockchain.
2. You can use event streams from tonapi.io, and possibly track user's wallet instead of your contract.
3. If you use TON Connect 2.0, you can receive BOC of external message that has been sent; you may track existence of such message in blockchain.
Mar 6, 2023, 12:26 PM
I can't sure how many wallet addresses are calling to my contract...? But thanks for reply.
Oh cool, so if my pages using TonConnect2.0, I basically can get the log / or data that knowing who is sending Txs to my contracts?
Oh cool, so if my pages using TonConnect2.0, I basically can get the log / or data that knowing who is sending Txs to my contracts?
Mar 6, 2023, 12:32 PM
Yes, when you ask user to connect wallet, you receive its address.
Mar 6, 2023, 12:33 PM
then I paste it tot TonAPI to track his Txs and see if he is sending message to the blockchain? OK....
good to try.
Mar 6, 2023, 12:38 PM
And you shall not keep list of all NFTs in a single contract, as once upon a time the update transaction will have not enough TON and fail.
Mar 6, 2023, 12:54 PM
anyone know how to pop with Back to fragment.com in TonConnect?
we integrate TonConnect successfully and edit in json file that with URL fields and more. But still can't get this return method as we did in Fragment.com. Why?
Mar 6, 2023, 2:32 PM
fragment uses v1 tonconnect
Mar 6, 2023, 2:33 PM
wait, what
So V2(or the latest version) doesn't support fallback to web-page?
Mar 6, 2023, 2:34 PM
i am not sure about v2 just know fragment uses v1
Mar 6, 2023, 2:34 PM
is there any code for V1 TonConnect? Thanks!
Mar 6, 2023, 2:37 PM
Use v2
Tonconnect/ui
Just use working package if you can't make it work by yourself
^^
Mar 6, 2023, 2:39 PM
ok, thanks a lot. ^^"
Mar 6, 2023, 2:49 PM