ive created jetton on TON blockchain called tonstars, i got 30mil of tonstars in my tonkeeper wallet. Now I want to make Pre-sale in my react website, ive made simple calculator so 1 TON = 5 TONSTARS, user can connect its wallet through ton-connect, and can pay for tonstars but ive no idea how to transfer tonstar from my main wallet to user that bought
Jan 14, 2024, 9:33 PM
Write smart contract
Jan 14, 2024, 9:36 PM
I used https://github.com/ton-blockchain/minter-contract, won't it work?
Jan 14, 2024, 9:37 PM
Have a better idea
Jan 14, 2024, 9:37 PM
do i need any other functionalities in this contract?
Jan 14, 2024, 9:37 PM
He want to automate process
He want module that change x ton on x * 5 tonstars on his site
Jan 14, 2024, 9:39 PM
yup just like typical pre-sale thing
sorry for noob questions but im begginer
I thought that i could just request payment from user and then on server side somehow send tonstars from my main wallet to user address
but i can't find any example or resources
Jan 14, 2024, 9:41 PM
https://github.com/ton-community/twa-template
you have to learn some basics before building goods on TON
Jan 14, 2024, 10:13 PM
I only want to create pre-sale section on my landing page - not trying to create TWA, im not sure if that template does help in it, like i got my jettons in my main wallet, now i need a way to send jettons from this wallet to wallet X when user perform transaction on React landing page
or do i miss anything?
Jan 14, 2024, 10:26 PM
you are said example, that template has example code of minting jetton using react app, follow it and learn about jetton standard on TON
Jan 14, 2024, 10:32 PM
ah my bad then, i already minted tokens - using minter.ton.com (ofc i used little changed selfhosted version), and got them in my wallet now i want to know how to distribute these tokens along users that can pay for them
Okey i will just let user pay through wallect connect, and then transfer funds from my main wallet to user’s with tonweb, is that good idea?
Jan 15, 2024, 12:12 AM