Hello,
We want to pre generate TON wallet once the user signup.
How is this possible using tonweb?
Lets say they’ve signup via google, how will getKeyPairFromPrivateKey work? Can this be used to generate wallet for user?
Hello,
We want to pre generate TON wallet once the user signup.
How is this possible using tonweb?
Lets say they’ve signup via google, how will getKeyPairFromPrivateKey work? Can this be used to generate wallet for user?
Hello!
It sounds like you’re exploring wallet creation with TON and Web3Auth. To pre-generate a TON wallet when a user signs up via a provider like Google, you can follow this general approach:
Integrate Web3Auth: First, ensure you have Web3Auth successfully integrated into your app. This will help you handle user authentication via Google.
Private Key Generation: After the user signs up and authenticates, use Web3Auth to obtain the user’s private key. This private key can then be used to derive the wallet address.
TON Wallet: With tonweb, you can generate the key pair using getKeyPairFromPrivateKey
. Once you have the private key from Web3Auth for the authenticated user, you can use tonweb’s utilities to create a TON wallet address.
To answer your question about getKeyPairFromPrivateKey
, yes, you can use it to derive the public key and ultimately the wallet address for the user.
Here’s a basic flow:
tonweb
and getKeyPairFromPrivateKey
to generate and store the TON wallet.If you face any issues while trying this out, feel free to provide:
This information can help us guide you more precisely. Happy coding!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Hey @onkast,
Welcome to the Web3Auth community!
I understand you’re looking to pre-generate a TON wallet. Currently, pre-generation is supported only for EVM addresses. Unfortunately, we do not have pre-generation support for TON wallets at the moment, and it’s not on our immediate roadmap.
While I can’t provide a timeline for this feature, I appreciate you bringing it up, and I’ll be sure to pass along your request to our team.
That’s correct.
I want to pre generate TON wallet.
The previous solution/reply you mentioned, does it work fully in backend or some of the code needs to be in backend and some in frontend?
I’ve seen the code for tonweb and web3auth.
If would be good if you can let me know which action will be frotnend or backend, so that we have it secure and this still works.
Just to explain our dilemma here, we have website, mobile app and telegram mini app.
We want to launch NFT for our users. How can i do this on TON chain?
I want to mint and drop NFT to my users to their TON Wallet even for users who sign up from web3 or google or github or telegram mini app.
Hope this clarifies.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.