What are the good ways to create a QR for ton://transfer link with large stateInit? My site is frontend-only so can't host the init cell on server.

Jan 17, 2023, 3:46 AM
As well, I want to minimize number of loaded external files for my site to be blazingly fast 🚀😀
Jan 17, 2023, 3:48 AM
Want to know as well
I think you can give the url then let user can click then jump to TonWallet?
Jan 17, 2023, 5:47 AM
That's a possible solution but it lacks Tonkeeper support.
I've thought a bit and now I think I've created a suitable system concept.
Jan 17, 2023, 6:02 AM
The qrcode is a popular library that works OK. It's 24 KB uncompressed.

However, the state init could be very big and I'm not sure that's using QR codes is a good fit for this.
You can always use code splitting and dynamic imports to load the code that is not needed immediately. But this is a separate subject.
Jan 17, 2023, 8:38 AM
Yes, I'm using it and have met the problem that everything doesn't fit into QR code, and that's why I initially asked.
Jan 17, 2023, 8:42 AM
As @steve_kite said, maybe we need some URL shortening service for TON.
Jan 17, 2023, 9:10 AM

© 2024 Draquery.com All rights reserved.