Hi devs. I'm just starting my web3 dev journey with TON. I've used Telegram for a long time but never really looked at TON. I'm a fullstack but i've written smart contracts only with solidity this will be my first time using func. My idea is to have a smart contract handling this process: someone sends TON to my wallet and in exchange receives another TON based token. The amount is calucated with a use of a specific algorithm. Is there any example that implements something like this in the docs that i can learn from? Thanks a lot. And one more question is there an example that shows how to connect the ton space beta wallet using ton connect in a telegram web app?

Sep 26, 2023, 7:34 PM
Can you clarify what you mean by another TON based token? What sort of token?
Sep 27, 2023, 2:57 AM
*that is, jetton or NFT?
If you want jetton-TON swap, you may have a look at WTON (wrapped TON) and DEXes.
If you want NFT-TON swap, the contract is called NFT sale contract.
Sep 27, 2023, 3:03 AM
Basically a token I've minted on TON. So Jetton.
Sep 27, 2023, 4:57 AM

© 2024 Draquery.com All rights reserved.