Is there a way to sign message on front-end and then send signature to backend which will call a transaction in a contract

Nov 9, 2023, 1:01 PM
This is functionality of wallet in fact.
Nov 9, 2023, 1:04 PM
we are trying to make gas free transactions and pay for user
so we need user to just sign message in wallet, it's will return signature to us, then we will send it to backend and backend will send this to contract, then the contract will check the signature if it is correct user
Nov 9, 2023, 1:06 PM
I am busy with writing a new article that makes this topics more clear .its link : https://github.com/ton-society/grants-and-bounties/issues/20
Short answer is : Although conventional user wallet have deterministic way of paying gas , but as TVM is complete turing machine , the possibility is endless .you can develop any algorithm you need without any doubt.for special your usecase my suggestion is utilizing sharding as discuss in sharding article in ton blog . it means you need an infrastructure that your user has a special wallet with your specific requirement .
Nov 9, 2023, 1:22 PM
How is sharding even related to that?!!
Do they need to access user's NFTs/jettons?
Nov 9, 2023, 1:39 PM
https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons
Nov 9, 2023, 1:47 PM
You've missed the point @bulbadubz makes. He needs service to pay for the entire message (so user can have *zero* balance), not just more optimal contracts architecture.
Nov 9, 2023, 1:48 PM
found out about "external messages" guess it's what i need
Nov 9, 2023, 1:50 PM
I sincerely admire your experience and knowledge. We will have a deep discussion soon .it seems you play with words.I am not pleased with your comment. Sorry for lack of time right now.
Nov 9, 2023, 4:16 PM
Currently, you cant pay gas for user. Wallet v5 has support for it
https://github.com/tonkeeper/w5
Nov 9, 2023, 9:53 PM

© 2024 Draquery.com All rights reserved.