Перейти к содержимому

Как создать кошелек ton coin

  • автор:

TON Wallet и как им пользоваться

Все больше разработчиков, компаний и предпринимателей приходят в криптоиндустрию в попытке привнести что-то новое на ее рынки. Одной из таких компаний является Telegram, которая предлагает облачный сервис обмена мгновенными сообщениями и запустила криптопроект под названием Toncoin.

Хотя Toncoin существует на рынке уже более двух лет, все больше и больше криптоинвесторов интересуются этой монетой, а также кошельком TON, который предлагает платформа. Это руководство объясняет все, что вам нужно знать о кошельке TON и о том, безопасно ли его использовать.

Что такое Toncoin?

Toncoin является частью сети TON. Это родной токен для самой сети. TON была разработана с учетом масштабируемости, чтобы эффективно обслуживать несколько миллиардов пользователей.

TON означает “Открытая сеть”, которая представляет собой полностью децентрализованный блокчейн первого уровня. Различные уровни блокчейна представляют собой архитектуру, на которой он построен.

Экспансивный характер TON достигается за счет шардинга блокчейна, который предполагает использование множества блокчейнов, размещенных в одной сети. Каждый блокчейн имеет свою собственную цель, которая может быть любой – от управления до регистрации транзакций.

Поскольку вся рабочая нагрузка распределяется между несколькими цепочками, никогда не возникает ситуации, когда одна цепочка должна обрабатывать значительное количество блоков, которые еще предстоит проверить. Ожидается, что сеть Ethereum также будет использовать эту технику в ближайшие месяцы.

В основе TON лежит механизм консенсуса proof of stake (PoS), при котором валидаторы проверяют транзакции через ставку. Этот механизм гораздо более энергоэффективен, чем доказательство работы (PoW). Toncoin также может похвастаться сверхбыстрыми транзакциями, гибкой архитектурой и низкими комиссиями за транзакции.

Что такое TON Wallet?

TON Wallet – это программное обеспечение, не требующее хранения, которое предоставляет криптоинвесторам место для хранения токенов TON на блокчейне TON. После создания кошелька TON Wallet вы можете получать и отправлять токены, а также взаимодействовать с простыми в использовании приложениями.

Поскольку кошелек TON не является кастодиальным, никто, кроме вас, не имеет возможности им пользоваться, что идеально подходит для пользователей, которые предпочитают иметь полный контроль над своими криптоактивами и хотят взаимодействовать с другими простыми в использовании приложениями.

TON также предлагает встроенный кастодиальный кошелек на своей платформе, доступ к которому можно получить через Telegram-бота @wallet. Это означает, что Telegram будет удовлетворять все ваши потребности в хранении, пока вы инвестируете или торгуете активами, которые храните в своем кошельке.

Как работает TON Wallet?

TON Wallet имеет два важных компонента для своих пользователей: Начальная фраза и адрес кошелька. Начальная фраза – это тип пароля, который состоит из 12 отдельных ключевых слов. Для восстановления кошелька необходимо пройти этап входа по начальной фразе. Использование начальной фразы гарантирует безопасность и сохранность вашего кошелька в сети TON.

Адрес кошелька – это серия буквенно-цифровых символов, позволяющих отправлять криптоактивы на кошелек TON. Монеты также могут быть отправлены на ваш кошелек с помощью предоставленного вами адреса кошелька TON. Чтобы лучше понять принцип работы кошельков TON и гибкую архитектуру, на которой они основаны, представьте свой кошелек TON как банковский счет. Адрес вашего кошелька – это номер вашего счета, а начальная фраза – это ваш пароль.

Основное различие между традиционным банковским счетом и TON-кошельком заключается в том, что при создании банковского счета ваша личная информация оказывается у других лиц. TON Wallet позволяет пользователям оставаться анонимными. Все транзакции в кошелек и из него происходят с помощью буквенно-цифрового кодированного адреса. Как уже упоминалось, TON может похвастаться сверхбыстрыми транзакциями, так что покупки или продажи, которые вы совершаете с кошелька TON, могут быть завершены без задержек.

С помощью функции кошелька приложения Telegram вы можете покупать и отправлять Toncoin. Вы также можете использовать эти монеты для оплаты различных услуг и приложений в экосистеме TON. Кроме того, если вы хотите принять участие в программе управления TON, ваши активы могут быть использованы для голосования по изменениям в платформе, а также по целям развития.

Вы также будете иметь определенный контроль над развитием платформы. Поскольку TON известна как PoS-сеть, все комиссии валидаторов оплачиваются в Toncoin. Транзакции очень доступны, чего нельзя сказать о некоторых платформах, таких как Ethereum. Обмен Toncoin осуществляется с комиссией менее $0,05.

Как создать кошелек TON на ПК

Чтобы создать новый кошелек TON на настольном компьютере, вы можете выбрать кошелек Linux, кошелек MacOS, кошелек Windows, кошелек веб-браузера или расширение Google Chrome. Независимо от выбранного вами кошелька, комиссия за транзакции будет низкой.

ton wallet desktop

Шаг 2: Выберите желаемый кошелек. Под названием каждого кошелька вы заметите описание, которое подскажет вам, с каким браузером или операционной системой совместим кошелек.

Шаг 3: Выбрав желаемый кошелек, вы можете прочитать более подробное описание кошелька и его возможностей. После этого нажмите на кнопку Открыть.

Следующие шаги зависят от типа создаваемого кошелька. Для плагина Google Chrome вам нужно будет добавить расширение в браузер, после чего вы сможете продолжить создание кошелька. Процесс создания на самом деле прост и понятен. Когда вы нажмете кнопку Create Wallet, вам будет предоставлена начальная фраза, которая позволит вам восстановить кошелек в случае его потери.

Как создать кошелек TON на смартфоне

Вы также можете создать кошелек TON на своем мобильном устройстве. Процесс создания кошелька может несколько отличаться в зависимости от типа используемого вами смартфона.

Шаг 1: Перейдите на сайт https://ton.app/wallets с вашего мобильного устройства.

ton wallet mobile

Шаг 2: Выберите мобильный кошелек, совместимый с вашим мобильным устройством. Под названием каждого кошелька вы увидите описание, которое подскажет вам, с каким устройством совместим кошелек.

Шаг 3: Выбрав совместимый кошелек, вы можете прочитать более подробное описание кошелька и его возможностей. После этого нажмите на кнопку Открыть. Это перенаправит вас на соответствующие страницы Toncoin Google Play Store и Toncoin Apple App Store для загрузки приложения на ваше мобильное устройство.

Шаг 4: Следуйте инструкциям приложения после его загрузки, чтобы создать свой кошелек TON.

Как пользоваться кошельком TON

После того как вы создали кошелек TON и установили пароль, новый кошелек будет готов к использованию. Если вы хотите пополнить свой кошелек, все, что вам нужно сделать, это выбрать кнопку Получить граммы. Затем вы можете ввести адрес своего кошелька или создать ссылку на счет, которую вы можете отправить людям, если хотите получать платежи.

Обязательно укажите точную сумму, которую вы хотели бы получить, после чего вы можете запросить QR-код, содержащий информацию о вашем счете. Как уже говорилось ранее, вы можете использовать свой кошелек для отправки и получения Toncoin. Кроме того, ваш кошелек можно использовать для взаимодействия с приложениями, которые присутствуют в сети TON.

Безопасен ли кошелек TON?

Если вы хотите быть уверены, что ваши активы в безопасности, и что вы контролируете каждый аспект использования этих активов, вы можете выбрать кошелек без опекунства, чтобы быть уверенным, что ваш кошелек в безопасности. На сайте TON Wallets, ссылка на который приведена выше, вы увидите синие галочки рядом с дюжиной различных TON-совместимых кошельков, включая официальный TON Wallet. Эти варианты были проверены непосредственно командой TON, что означает, что они абсолютно безопасны для использования.

Помните, что Toncoin – это законная монета с реальной целью. Благодаря открытой сети, на которой основан Toncoin, он хорошо масштабируется и предоставляет пользователям низкие комиссии за транзакции – две ключевые характеристики, которые делают будущий рост более вероятным.

TON – это открытая сеть, которая может похвастаться сверхбыстрыми транзакциями, простыми в использовании приложениями и гибкой архитектурой. Когда вы инвестируете в Toncoin, вы можете использовать свой кошелек TON для отправки и получения Toncoin по своему усмотрению. Приведенные выше шаги – это простое руководство, которое поможет вам создать кошелек TON на предпочитаемом устройстве или операционной системе.

TON Hello World part 1: Step by step guide for working with your first TON wallet

TON Blockchain is based on the TON coin (previously labeled TonCoin). This cryptocurrency is used to pay for executing transactions (gas), much like ETH on the Ethereum blockchain. If you’re participating in the TON ecosystem, most likely that you’re already holding some TON and probably already have a wallet.

In this step by step tutorial, we will create a new TON wallet using one of the wallet apps and then try to access it programmatically. This can be useful for example if you’re planning on deploying a smart contract through code or writing a bot that receives and sends TON. We’ll also understand how wallets work on TON and become comfortable with using them.

Mainnet or testnet

There are two variations of TON Blockchain we can work on — mainnet and testnet. Mainnet is the real thing, where we would have to pay real TON coin in order to transact and staked validators would execute our transactions and guarantee a very high level of security — our wallet would be able to do dangerous things like holding large amounts of money without worrying too much.

Testnet is a testing playground where the TON coin isn’t real and is available for free. Naturally, testnet doesn’t offer any real security so we would just use it to practice and see that our code is behaving as expected.

Testnet is often appealing to new developers because it’s free, but experience shows that mainnet is actually more cost effective. Since testnet is a simulated environment, it requires special wallets, doesn’t always behave like the real thing and is more prone to flakiness and random errors.

Since TON transactions are very cheap, about 1 cent per transaction, investing just $5 will be enough for hundreds of transactions. If you decide to work on mainnet you will have a significantly smoother experience. The time you save will definitely be worth more than the $5 you spent.

Step 1: Create a new wallet using an app

The simplest way to create a TON wallet is visit https://ton.org/wallets and choose one of the wallet apps from the list. This page explains the difference between custodial and non-custodial wallets. With a non-custodial wallet, you own the wallet and hold its private key by yourself. With a custodial wallet, you trust somebody else to do this for you.

The point of blockchain is being in control of your own funds, so we’ll naturally choose a non-custodial option. They’re all pretty similar, let’s choose Tonkeeper. Go ahead and install the Tonkeeper app on your phone and run it.

If you don’t already have a wallet connected to the app, tap on the «Set up wallet» button. We’re going to create a new wallet. After a few seconds, your wallet is created and Tonkeeper displays your recovery phrase — the secret 24 words that give access to your wallet funds.

Step 2: Backup the 24 word recovery phrase

The recovery phrase is the key to accessing your wallet. Lose this phrase and you’ll lose access to your funds. Give this phrase to somebody and they’ll be able to take your funds. Keep this secret and backed up in a safe place.

Why 24 words? The OG crypto wallets, like Bitcoin in its early days, did not use word phrases, they used a bunch of random looking letters to specify your key. This didn’t work so well because of typos. People would make a mistake with a single letter and not be able to access their funds. The idea behind words was to eliminate these mistakes and make the key easier to write down. These phrases are also called «mnemonics» because they act as mnemonic devices that make remembering them easier for humans.

Step 3: View the wallet by address in an explorer

If you click on the top left in the Tonkeeper app you will copy your wallet address. Alternatively, you can tap on the «Receive» button and see your wallet address displayed on screen.

It should look something like this:

This wallet address isn’t secret. You can share it with anyone you want and they won’t be able to touch your funds. If you want anyone to send you some TON, you will need to give them this address. You should be aware though of some privacy matters. Wallet addresses in TON and most blockchains are pseudo-anonymous, this means that they don’t reveal your identity in the real world. If you tell somebody your address and they know you in the real world, they can now make the connection.

An explorer is a tool that allows you to query data from the chain and investigate TON addresses. There are many explorers to choose from. We’re going to use Tonscan. Notice that mainnet and testnet have different explorers because those are different blockchains.

The mainnet version of Tonscan is available on https://tonscan.org — open it and input your wallet address.

If this wallet is indeed new and hasn’t been used before, its Tonscan page should show «State» as «Inactive». When you look under the «Contract» tab, you should see the message «This address doesn’t contain any data in blockchain — it was either never used or the contract was deleted.»

Wallets in TON are also smart contracts! What this message means is that this smart contract hasn’t been deployed yet and is therefore uninitialized. Deploying a smart contract means uploading its code onto the blockchain.

Another interesting thing to notice is that the address shown in Tonscan may be different from the address you typed in the search bar! There are multiple ways to encode the same TON address. You can use https://ton.org/address to see some additional representations and verify that they all share the same HEX public key.

Step 4: Fund and deploy your wallet contract

As you can see in the explorer, the TON balance of our wallet is currently zero. We will need to fund our wallet by asking somebody to transfer some TON coins to our address. But wait… isn’t this dangerous? How can we transfer some coins to the smart contract before it is deployed?

It turns out that this isn’t a problem on TON. TON Blockchain maintains a list of accounts by address and stores the TON coin balance per address. Since our wallet smart contract has an address, it can have a balance, even before it has been deployed. Let’s send 2 TON to our wallet address.

Refresh the explorer after the coins have been sent. As you can see, the balance of the smart contract is now 2 TON. And the «State» remains «Inactive», meaning it still hasn’t been deployed.

So when is your wallet smart contract being deployed? This would normally happen when you execute your first transaction — normally an outgoing transfer. This transaction is going to cost gas, so your balance cannot be zero to make it. Tonkeeper is going to deploy our smart contract automatically when we issue the first transfer.

Let’s send 0.01 TON somewhere through Tonkeeper.

Refresh the explorer after approving the transaction. We can see that Tonkeeper indeed deployed our contract! The «State» is now «Active». The contract is no longer uninitialized and shows «wallet v4 r2» instead. Your contract may show a different version if Tonkeeper was updated since this tutorial was written.

We can also see that we’ve also paid some gas for the deployment and transfer fees. After sending 0.01 TON we have 1.9764 TON remaining, meaning we paid a total of 0.0136 TON in fees, not too bad.

Step 5: Wallets contracts have versions

The explorer shows that «Contract Type» is «wallet v4 r2» (or possibly a different version if your Tonkeeper was since updated). This refers to the version of our smart contract code. If our wallet smart contract was deployed with «v4» as its code, this means somewhere must exist «v1», «v2» and «v3».

This is indeed correct. Over time, the TON core team has published multiple versions of the wallet contract — this is v4 source code.

Let’s look at this well known wallet address of TON Foundation. As you can see, it uses «wallet v3 r2» for its code. It was probably deployed before v4 was released.

Is it possible for the same secret mnemonic to have multiple wallets deployed with different versions? Definitely! This means that the same user may have multiple different wallets, each with its own unique address. This can get confusing. The next time you try to access your wallet using your secret mnemonic and you see a different address than you expect and a balance of zero, don’t be alarmed. Nobody stole your money, you are probably just looking at the wrong wallet version.

Step 6: Set up your local machine for coding

We’re about to use code to access our wallet programmatically. Before we can start writing code, we need to install certain developer tools on our computer.

The libraries we’re going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v in terminal.

For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code — it’s free and open source.

Let’s create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:

Next, we’re going to install a JavaScript package named ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:

Step 7: Get the wallet address programmatically

The first thing we’ll do is calculate the address of our wallet in code and see that it matches what we saw in the explorer. This action is completely offline since the wallet address is derived from the version of the wallet and the private key used to create it.

Let’s assume that your secret 24 word mnemonic is unfold sugar water . — this is the phrase we backed up in step 2.

Create the file step7.ts with the following content:

To see the wallet address, run it using terminal:

Notice that we’re not just printing the address, we’re also printing the workchain number. TON supports multiple parallel blockchain instances called workchains. Today, only two workchains exist, workchain 0 is used for all of our regular contracts, and workchain -1 (the masterchain) is used by the validators. Unless you’re doing something special, you’ll always use workchain 0.

As discussed in step 5, if your wallet has a different version from «wallet v4 r2» you will need to modify slightly the code above. Let’s say for example that your version is «wallet v3 r2», then replace WalletContractV4 with WalletContractV3R2 .

Step 8: Read wallet state from the chain

Let’s take things up a notch and read some live state data from our wallet contract that will force us to connect to the live blockchain network. We’re going to read the live wallet TON coin balance (we saw that on the explorer earlier). We’re also going to read the wallet seqno — the sequence number of the last transaction that the wallet sent. Every time the wallet sends a transaction the seqno increments.

To query info from the live network will require an RPC service provider — similar to Infura on Ethereum. These providers run TON Blockchain nodes and allow us to communicate with them over HTTP. TON Access is an awesome service that will provide us with unthrottled API access for free. It’s also decentralized, which is the preferred way to access the network.

Install it by opening terminal in the project directory and running:

Create the file step8.ts with the following content:

To see the balance and seqno, run using terminal:

If you have network connectivity issues and get errors like backend nodes unhealthy or timeouts, please join the Telegram support chat for TON access to get assistance.

Step 9: Send transfer transaction to the chain

The previous action was read-only and should generally be possible even if you don’t have the private key of the wallet. Now, we’re going to transfer some TON from the wallet. Since this is a privileged write action, the private key is required.

Reward: We will send 0.05 TON to the special address to mint a secret NFT from «TON Masters» collection (testnet link). Here is how your reward looks like:

Create a new file step9.ts with this content:

Execute the script by running in terminal:

Once the wallet signs and sends a transaction, we must wait until TON Blockchain validators insert this transaction into a new block. Since block time on TON is approx 5 seconds, it will usually take 5-10 seconds until the transaction confirms. Try looking for this outgoing transaction in the Tonscan explorer. After running the code, you will see the NFT minted in your wallet soon.

If you’re getting errors in this step, please triple check that the wallet contract you’re using is deployed and funded. If you’re using the wrong wallet version for example, you’ll end up using a wallet contract that isn’t deployed and the transaction will fail.

Conclusion

For your convenience, all the code in this tutorial is available in executable form here.

If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.

TON Hello World part 1: Step by step guide for working with your first TON wallet

by Tal Kol

TON Blockchain is based on the TON coin (previously labeled TonCoin). This cryptocurrency is used to pay for executing transactions (gas), much like ETH on the Ethereum blockchain. If you’re participating in the TON ecosystem, most likely that you’re already holding some TON and probably already have a wallet.

In this step by step tutorial, we will create a new TON wallet using one of the wallet apps and then try to access it programmatically. This can be useful for example if you’re planning on deploying a smart contract through code or writing a bot that receives and sends TON. We’ll also understand how wallets work on TON and become comfortable with using them.

Mainnet or testnet

There are two variations of TON Blockchain we can work on — mainnet and testnet. Mainnet is the real thing, where we would have to pay real TON coin in order to transact and staked validators would execute our transactions and guarantee a very high level of security — our wallet would be able to do dangerous things like holding large amounts of money without worrying too much.

Testnet is a testing playground where the TON coin isn’t real and is available for free. Naturally, testnet doesn’t offer any real security so we would just use it to practice and see that our code is behaving as expected.

Testnet is often appealing to new developers because it’s free, but experience shows that mainnet is actually more cost effective. Since testnet is a simulated environment, it requires special wallets, doesn’t always behave like the real thing and is more prone to flakiness and random errors.

Since TON transactions are very cheap, about 1 cent per transaction, investing just $5 will be enough for hundreds of transactions. If you decide to work on mainnet you will have a significantly smoother experience. The time you save will definitely be worth more than the $5 you spent.

Step 1: Create a new wallet using an app

The simplest way to create a TON wallet is visit https://ton.org/wallets and choose one of the wallet apps from the list. This page explains the difference between custodial and non-custodial wallets. With a non-custodial wallet, you own the wallet and hold its private key by yourself. With a custodial wallet, you trust somebody else to do this for you.

The point of blockchain is being in control of your own funds, so we’ll naturally choose a non-custodial option. They’re all pretty similar, let’s choose Tonkeeper. Go ahead and install the Tonkeeper app on your phone and run it.

If you don’t already have a wallet connected to the app, tap on the «Set up wallet» button. We’re going to create a new wallet. After a few seconds, your wallet is created and Tonkeeper displays your recovery phrase — the secret 24 words that give access to your wallet funds.

Step 2: Backup the 24 word recovery phrase

The recovery phrase is the key to accessing your wallet. Lose this phrase and you’ll lose access to your funds. Give this phrase to somebody and they’ll be able to take your funds. Keep this secret and backed up in a safe place.

Why 24 words? The OG crypto wallets, like Bitcoin in its early days, did not use word phrases, they used a bunch of random looking letters to specify your key. This didn’t work so well because of typos. People would make a mistake with a single letter and not be able to access their funds. The idea behind words was to eliminate these mistakes and make the key easier to write down. These phrases are also called «mnemonics» because they act as mnemonic devices that make remembering them easier for humans.

Step 3: View the wallet by address in an explorer

If you click on the top left in the Tonkeeper app you will copy your wallet address. Alternatively, you can tap on the «Receive» button and see your wallet address displayed on screen.

It should look something like this:

This wallet address isn’t secret. You can share it with anyone you want and they won’t be able to touch your funds. If you want anyone to send you some TON, you will need to give them this address. You should be aware though of some privacy matters. Wallet addresses in TON and most blockchains are pseudo-anonymous, this means that they don’t reveal your identity in the real world. If you tell somebody your address and they know you in the real world, they can now make the connection.

An explorer is a tool that allows you to query data from the chain and investigate TON addresses. There are many explorers to choose from. We’re going to use Tonscan. Notice that mainnet and testnet have different explorers because those are different blockchains.

The mainnet version of Tonscan is available on https://tonscan.org — open it and input your wallet address.

If this wallet is indeed new and hasn’t been used before, its Tonscan page should show «State» as «Inactive». When you look under the «Contract» tab, you should see the message «This address doesn’t contain any data in blockchain — it was either never used or the contract was deleted.»

Wallets in TON are also smart contracts! What this message means is that this smart contract hasn’t been deployed yet and is therefore uninitialized. Deploying a smart contract means uploading its code onto the blockchain.

Another interesting thing to notice is that the address shown in Tonscan may be different from the address you typed in the search bar! There are multiple ways to encode the same TON address. You can use https://ton.org/address to see some additional representations and verify that they all share the same HEX public key.

Step 4: Fund and deploy your wallet contract

As you can see in the explorer, the TON balance of our wallet is currently zero. We will need to fund our wallet by asking somebody to transfer some TON coins to our address. But wait… isn’t this dangerous? How can we transfer some coins to the smart contract before it is deployed?

It turns out that this isn’t a problem on TON. TON Blockchain maintains a list of accounts by address and stores the TON coin balance per address. Since our wallet smart contract has an address, it can have a balance, even before it has been deployed. Let’s send 2 TON to our wallet address.

Refresh the explorer after the coins have been sent. As you can see, the balance of the smart contract is now 2 TON. And the «State» remains «Inactive», meaning it still hasn’t been deployed.

So when is your wallet smart contract being deployed? This would normally happen when you execute your first transaction — normally an outgoing transfer. This transaction is going to cost gas, so your balance cannot be zero to make it. Tonkeeper is going to deploy our smart contract automatically when we issue the first transfer.

Let’s send 0.01 TON somewhere through Tonkeeper.

Refresh the explorer after approving the transaction. We can see that Tonkeeper indeed deployed our contract! The «State» is now «Active». The contract is no longer uninitialized and shows «wallet v4 r2» instead. Your contract may show a different version if Tonkeeper was updated since this tutorial was written.

We can also see that we’ve also paid some gas for the deployment and transfer fees. After sending 0.01 TON we have 1.9764 TON remaining, meaning we paid a total of 0.0136 TON in fees, not too bad.

Step 5: Wallets contracts have versions

The explorer shows that «Contract Type» is «wallet v4 r2» (or possibly a different version if your Tonkeeper was since updated). This refers to the version of our smart contract code. If our wallet smart contract was deployed with «v4» as its code, this means somewhere must exist «v1», «v2» and «v3».

This is indeed correct. Over time, the TON core team has published multiple versions of the wallet contract — this is v4 source code.

Let’s look at this well known wallet address of TON Foundation. As you can see, it uses «wallet v3 r2» for its code. It was probably deployed before v4 was released.

Is it possible for the same secret mnemonic to have multiple wallets deployed with different versions? Definitely! This means that the same user may have multiple different wallets, each with its own unique address. This can get confusing. The next time you try to access your wallet using your secret mnemonic and you see a different address than you expect and a balance of zero, don’t be alarmed. Nobody stole your money, you are probably just looking at the wrong wallet version.

Step 6: Set up your local machine for coding

We’re about to use code to access our wallet programmatically. Before we can start writing code, we need to install certain developer tools on our computer.

The libraries we’re going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v in terminal.

For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code — it’s free and open source.

Let’s create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:

Next, we’re going to install a JavaScript package named TonWeb that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:

Step 7: Get the wallet address programmatically

The first thing we’ll do is calculate the address of our wallet in code and see that it matches what we saw in the explorer. This action is completely offline since the wallet address is derived from the version of the wallet and the private key used to create it.

Let’s assume that your secret 24 word mnemonic is unfold sugar water . — this is the phrase we backed up in step 2.

Create the file step7.ts with the following content:

To see the wallet address, run it using terminal:

Notice that we’re not just printing the address, we’re also printing the workchain number. TON supports multiple parallel blockchain instances called workchains. Today, only two workchains exist, workchain 0 is used for all of our regular contracts, and workchain -1 (the masterchain) is used by the validators. Unless you’re doing something special, you’ll always use workchain 0.

As discussed in step 5, if your wallet has a different version from «wallet v4 r2» you will need to modify slightly the code above. Let’s say for example that your version is «wallet v3 r2», then replace tonweb.wallet.all[«v4R2»] with tonweb.wallet.all[«v3R2»] .

Step 8: Read wallet state from the chain

Let’s take things up a notch and read some live state data from our wallet contract that will force us to connect to the live blockchain network. We’re going to read the live wallet TON coin balance (we saw that on the explorer earlier). We’re also going to read the wallet seqno — the sequence number of the last transaction that the wallet sent. Every time the wallet sends a transaction the seqno increments.

To query info from the live network will require an RPC service provider — similar to Infura on Ethereum. These providers run TON Blockchain nodes and allow us to communicate with them over HTTP. TON Access is an awesome service that will provide us with unthrottled API access for free. It’s also decentralized, which is the preferred way to access the network.

Install it by opening terminal in the project directory and running:

Create the file step8.ts with the following content:

To see the balance and seqno, run using terminal:

If you have network connectivity issues and get errors like backend nodes unhealthy or timeouts, please join the Telegram support chat for TON access to get assistance.

Step 9: Send transfer transaction to the chain

The previous action was read-only and should generally be possible even if you don’t have the private key of the wallet. Now, we’re going to transfer some TON from the wallet. Since this is a privileged write action, the private key is required.

Reward: We will send 0.05 TON to the special address to mint a secret NFT from «TON Masters» collection (testnet link). Here is how your reward looks like:

Create a new file step9.ts with this content:

Execute the script by running in terminal:

Once the wallet signs and sends a transaction, we must wait until TON Blockchain validators insert this transaction into a new block. Since block time on TON is approx 5 seconds, it will usually take 5-10 seconds until the transaction confirms. Try looking for this outgoing transaction in the Tonscan explorer. After running the code, you will see the NFT minted in your wallet soon.

If you’re getting errors in this step, please triple check that the wallet contract you’re using is deployed and funded. If you’re using the wrong wallet version for example, you’ll end up using a wallet contract that isn’t deployed and the transaction will fail.

Conclusion

For your convenience, all the code in this tutorial is available in executable form here.

If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.

TON Hello World part 1: Step by step guide for working with your first TON wallet

by Tal Kol

TON Blockchain is based on the TON coin (previously labeled TonCoin). This cryptocurrency is used to pay for executing transactions (gas), much like ETH on the Ethereum blockchain. If you’re participating in the TON ecosystem, most likely that you’re already holding some TON and probably already have a wallet.

In this step by step tutorial, we will create a new TON wallet using one of the wallet apps and then try to access it programmatically. This can be useful for example if you’re planning on deploying a smart contract through code or writing a bot that receives and sends TON. We’ll also understand how wallets work on TON and become comfortable with using them.

Mainnet or testnet

There are two variations of TON Blockchain we can work on — mainnet and testnet. Mainnet is the real thing, where we would have to pay real TON coin in order to transact and staked validators would execute our transactions and guarantee a very high level of security — our wallet would be able to do dangerous things like holding large amounts of money without worrying too much.

Testnet is a testing playground where the TON coin isn’t real and is available for free. Naturally, testnet doesn’t offer any real security so we would just use it to practice and see that our code is behaving as expected.

Testnet is often appealing to new developers because it’s free, but experience shows that mainnet is actually more cost effective. Since testnet is a simulated environment, it requires special wallets, doesn’t always behave like the real thing and is more prone to flakiness and random errors.

Since TON transactions are very cheap, about 1 cent per transaction, investing just $5 will be enough for hundreds of transactions. If you decide to work on mainnet you will have a significantly smoother experience. The time you save will definitely be worth more than the $5 you spent.

Step 1: Create a new wallet using an app

The simplest way to create a TON wallet is visit https://ton.org/wallets and choose one of the wallet apps from the list. This page explains the difference between custodial and non-custodial wallets. With a non-custodial wallet, you own the wallet and hold its private key by yourself. With a custodial wallet, you trust somebody else to do this for you.

The point of blockchain is being in control of your own funds, so we’ll naturally choose a non-custodial option. They’re all pretty similar, let’s choose Tonkeeper. Go ahead and install the Tonkeeper app on your phone and run it.

Tonkeeper works by default on TON mainnet. If you decided to work on testnet, you will need to switch the app manually to dev mode. Open the «Settings» tab and tap 5 times quickly on the Version number on the bottom. The «Dev Menu» should show up. Click on «Switch to Testnet» and make the switch. You can use this menu later to return to mainnet.

If you don’t already have a wallet connected to the app, tap on the «Set up wallet» button. We’re going to create a new wallet. After a few seconds, your wallet is created and Tonkeeper displays your recovery phrase — the secret 24 words that give access to your wallet funds.

Step 2: Backup the 24 word recovery phrase

The recovery phrase is the key to accessing your wallet. Lose this phrase and you’ll lose access to your funds. Give this phrase to somebody and they’ll be able to take your funds. Keep this secret and backed up in a safe place.

Why 24 words? The OG crypto wallets, like Bitcoin in its early days, did not use word phrases, they used a bunch of random looking letters to specify your key. This didn’t work so well because of typos. People would make a mistake with a single letter and not be able to access their funds. The idea behind words was to eliminate these mistakes and make the key easier to write down. These phrases are also called «mnemonics» because they act as mnemonic devices that make remembering them easier for humans.

Step 3: View the wallet by address in an explorer

If you click on the top left in the Tonkeeper app you will copy your wallet address. Alternatively, you can tap on the «Receive» button and see your wallet address displayed on screen.

It should look something like this:

This wallet address isn’t secret. You can share it with anyone you want and they won’t be able to touch your funds. If you want anyone to send you some TON, you will need to give them this address. You should be aware though of some privacy matters. Wallet addresses in TON and most blockchains are pseudo-anonymous, this means that they don’t reveal your identity in the real world. If you tell somebody your address and they know you in the real world, they can now make the connection.

An explorer is a tool that allows you to query data from the chain and investigate TON addresses. There are many explorers to choose from. We’re going to use Tonscan. Notice that mainnet and testnet have different explorers because those are different blockchains.

The testnet version of Tonscan is available on https://testnet.tonscan.org — open it and input your wallet address.

If this wallet is indeed new and hasn’t been used before, its Tonscan page should show «State» as «Inactive». When you look under the «Contract» tab, you should see the message «This address doesn’t contain any data in blockchain — it was either never used or the contract was deleted.»

Wallets in TON are also smart contracts! What this message means is that this smart contract hasn’t been deployed yet and is therefore uninitialized. Deploying a smart contract means uploading its code onto the blockchain.

Another interesting thing to notice is that the address shown in Tonscan may be different from the address you typed in the search bar! There are multiple ways to encode the same TON address. You can use https://ton.org/address to see some additional representations and verify that they all share the same HEX public key.

Step 4: Fund and deploy your wallet contract

As you can see in the explorer, the TON balance of our wallet is currently zero. We will need to fund our wallet by asking somebody to transfer some TON coins to our address. But wait… isn’t this dangerous? How can we transfer some coins to the smart contract before it is deployed?

It turns out that this isn’t a problem on TON. TON Blockchain maintains a list of accounts by address and stores the TON coin balance per address. Since our wallet smart contract has an address, it can have a balance, even before it has been deployed. Let’s send 2 TON to our wallet address.

When using testnet, TON coins can be received for free. Using Telegram messenger, open the faucet https://t.me/testgiver_ton_bot and request some coins from the bot by providing your wallet address.

Refresh the explorer after the coins have been sent. As you can see, the balance of the smart contract is now 2 TON. And the «State» remains «Inactive», meaning it still hasn’t been deployed.

So when is your wallet smart contract being deployed? This would normally happen when you execute your first transaction — normally an outgoing transfer. This transaction is going to cost gas, so your balance cannot be zero to make it. Tonkeeper is going to deploy our smart contract automatically when we issue the first transfer.

Let’s send 0.01 TON somewhere through Tonkeeper.

Refresh the explorer after approving the transaction. We can see that Tonkeeper indeed deployed our contract! The «State» is now «Active». The contract is no longer uninitialized and shows «wallet v4 r2» instead. Your contract may show a different version if Tonkeeper was updated since this tutorial was written.

We can also see that we’ve also paid some gas for the deployment and transfer fees. After sending 0.01 TON we have 1.9764 TON remaining, meaning we paid a total of 0.0136 TON in fees, not too bad.

Step 5: Wallets contracts have versions

The explorer shows that «Contract Type» is «wallet v4 r2» (or possibly a different version if your Tonkeeper was since updated). This refers to the version of our smart contract code. If our wallet smart contract was deployed with «v4» as its code, this means somewhere must exist «v1», «v2» and «v3».

This is indeed correct. Over time, the TON core team has published multiple versions of the wallet contract — this is v4 source code.

Let’s look at this well known wallet address of TON Foundation. As you can see, it uses «wallet v3 r2» for its code. It was probably deployed before v4 was released.

Is it possible for the same secret mnemonic to have multiple wallets deployed with different versions? Definitely! This means that the same user may have multiple different wallets, each with its own unique address. This can get confusing. The next time you try to access your wallet using your secret mnemonic and you see a different address than you expect and a balance of zero, don’t be alarmed. Nobody stole your money, you are probably just looking at the wrong wallet version.

Step 6: Set up your local machine for coding

We’re about to use code to access our wallet programmatically. Before we can start writing code, we need to install certain developer tools on our computer.

The libraries we’re going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v in terminal.

For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code — it’s free and open source.

Let’s create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:

Next, we’re going to install a JavaScript package named ton that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:

Step 7: Get the wallet address programmatically

The first thing we’ll do is calculate the address of our wallet in code and see that it matches what we saw in the explorer. This action is completely offline since the wallet address is derived from the version of the wallet and the private key used to create it.

Let’s assume that your secret 24 word mnemonic is unfold sugar water . — this is the phrase we backed up in step 2.

Create the file step7.ts with the following content:

To see the wallet address, run it using terminal:

Notice that we’re not just printing the address, we’re also printing the workchain number. TON supports multiple parallel blockchain instances called workchains. Today, only two workchains exist, workchain 0 is used for all of our regular contracts, and workchain -1 (the masterchain) is used by the validators. Unless you’re doing something special, you’ll always use workchain 0.

As discussed in step 5, if your wallet has a different version from «wallet v4 r2» you will need to modify slightly the code above. Let’s say for example that your version is «wallet v3 r2», then replace WalletContractV4 with WalletContractV3R2 .

Step 8: Read wallet state from the chain

Let’s take things up a notch and read some live state data from our wallet contract that will force us to connect to the live blockchain network. We’re going to read the live wallet TON coin balance (we saw that on the explorer earlier). We’re also going to read the wallet seqno — the sequence number of the last transaction that the wallet sent. Every time the wallet sends a transaction the seqno increments.

To query info from the live network will require an RPC service provider — similar to Infura on Ethereum. These providers run TON Blockchain nodes and allow us to communicate with them over HTTP. TON Access is an awesome service that will provide us with unthrottled API access for free. It’s also decentralized, which is the preferred way to access the network.

Install it by opening terminal in the project directory and running:

Create the file step8.ts with the following content:

To see the balance and seqno, run using terminal:

If you have network connectivity issues and get errors like backend nodes unhealthy or timeouts, please join the Telegram support chat for TON access to get assistance.

Step 9: Send transfer transaction to the chain

The previous action was read-only and should generally be possible even if you don’t have the private key of the wallet. Now, we’re going to transfer some TON from the wallet. Since this is a privileged write action, the private key is required.

Reward: We will send 0.05 TON to the special address to mint a secret NFT from «TON Masters» collection (testnet link). Here is how your reward looks like:

Create a new file step9.ts with this content:

Execute the script by running in terminal:

Once the wallet signs and sends a transaction, we must wait until TON Blockchain validators insert this transaction into a new block. Since block time on TON is approx 5 seconds, it will usually take 5-10 seconds until the transaction confirms. Try looking for this outgoing transaction in the Tonscan explorer. After running the code, you will see the NFT minted in your wallet soon.

If you’re getting errors in this step, please triple check that the wallet contract you’re using is deployed and funded. If you’re using the wrong wallet version for example, you’ll end up using a wallet contract that isn’t deployed and the transaction will fail.

Conclusion

For your convenience, all the code in this tutorial is available in executable form here.

If you found a mistake in this tutorial, please submit a PR and help us fix it. This tutorial platform is fully open source and available on https://github.com/ton-community/tutorials.

TON Hello World part 1: Step by step guide for working with your first TON wallet

by Tal Kol

TON Blockchain is based on the TON coin (previously labeled TonCoin). This cryptocurrency is used to pay for executing transactions (gas), much like ETH on the Ethereum blockchain. If you’re participating in the TON ecosystem, most likely that you’re already holding some TON and probably already have a wallet.

In this step by step tutorial, we will create a new TON wallet using one of the wallet apps and then try to access it programmatically. This can be useful for example if you’re planning on deploying a smart contract through code or writing a bot that receives and sends TON. We’ll also understand how wallets work on TON and become comfortable with using them.

Mainnet or testnet

There are two variations of TON Blockchain we can work on — mainnet and testnet. Mainnet is the real thing, where we would have to pay real TON coin in order to transact and staked validators would execute our transactions and guarantee a very high level of security — our wallet would be able to do dangerous things like holding large amounts of money without worrying too much.

Testnet is a testing playground where the TON coin isn’t real and is available for free. Naturally, testnet doesn’t offer any real security so we would just use it to practice and see that our code is behaving as expected.

Testnet is often appealing to new developers because it’s free, but experience shows that mainnet is actually more cost effective. Since testnet is a simulated environment, it requires special wallets, doesn’t always behave like the real thing and is more prone to flakiness and random errors.

Since TON transactions are very cheap, about 1 cent per transaction, investing just $5 will be enough for hundreds of transactions. If you decide to work on mainnet you will have a significantly smoother experience. The time you save will definitely be worth more than the $5 you spent.

Step 1: Create a new wallet using an app

The simplest way to create a TON wallet is visit https://ton.org/wallets and choose one of the wallet apps from the list. This page explains the difference between custodial and non-custodial wallets. With a non-custodial wallet, you own the wallet and hold its private key by yourself. With a custodial wallet, you trust somebody else to do this for you.

The point of blockchain is being in control of your own funds, so we’ll naturally choose a non-custodial option. They’re all pretty similar, let’s choose Tonkeeper. Go ahead and install the Tonkeeper app on your phone and run it.

Tonkeeper works by default on TON mainnet. If you decided to work on testnet, you will need to switch the app manually to dev mode. Open the «Settings» tab and tap 5 times quickly on the Version number on the bottom. The «Dev Menu» should show up. Click on «Switch to Testnet» and make the switch. You can use this menu later to return to mainnet.

If you don’t already have a wallet connected to the app, tap on the «Set up wallet» button. We’re going to create a new wallet. After a few seconds, your wallet is created and Tonkeeper displays your recovery phrase — the secret 24 words that give access to your wallet funds.

Step 2: Backup the 24 word recovery phrase

The recovery phrase is the key to accessing your wallet. Lose this phrase and you’ll lose access to your funds. Give this phrase to somebody and they’ll be able to take your funds. Keep this secret and backed up in a safe place.

Why 24 words? The OG crypto wallets, like Bitcoin in its early days, did not use word phrases, they used a bunch of random looking letters to specify your key. This didn’t work so well because of typos. People would make a mistake with a single letter and not be able to access their funds. The idea behind words was to eliminate these mistakes and make the key easier to write down. These phrases are also called «mnemonics» because they act as mnemonic devices that make remembering them easier for humans.

Step 3: View the wallet by address in an explorer

If you click on the top left in the Tonkeeper app you will copy your wallet address. Alternatively, you can tap on the «Receive» button and see your wallet address displayed on screen.

It should look something like this:

This wallet address isn’t secret. You can share it with anyone you want and they won’t be able to touch your funds. If you want anyone to send you some TON, you will need to give them this address. You should be aware though of some privacy matters. Wallet addresses in TON and most blockchains are pseudo-anonymous, this means that they don’t reveal your identity in the real world. If you tell somebody your address and they know you in the real world, they can now make the connection.

An explorer is a tool that allows you to query data from the chain and investigate TON addresses. There are many explorers to choose from. We’re going to use Tonscan. Notice that mainnet and testnet have different explorers because those are different blockchains.

The testnet version of Tonscan is available on https://testnet.tonscan.org — open it and input your wallet address.

If this wallet is indeed new and hasn’t been used before, its Tonscan page should show «State» as «Inactive». When you look under the «Contract» tab, you should see the message «This address doesn’t contain any data in blockchain — it was either never used or the contract was deleted.»

Wallets in TON are also smart contracts! What this message means is that this smart contract hasn’t been deployed yet and is therefore uninitialized. Deploying a smart contract means uploading its code onto the blockchain.

Another interesting thing to notice is that the address shown in Tonscan may be different from the address you typed in the search bar! There are multiple ways to encode the same TON address. You can use https://ton.org/address to see some additional representations and verify that they all share the same HEX public key.

Step 4: Fund and deploy your wallet contract

As you can see in the explorer, the TON balance of our wallet is currently zero. We will need to fund our wallet by asking somebody to transfer some TON coins to our address. But wait… isn’t this dangerous? How can we transfer some coins to the smart contract before it is deployed?

It turns out that this isn’t a problem on TON. TON Blockchain maintains a list of accounts by address and stores the TON coin balance per address. Since our wallet smart contract has an address, it can have a balance, even before it has been deployed. Let’s send 2 TON to our wallet address.

When using testnet, TON coins can be received for free. Using Telegram messenger, open the faucet https://t.me/testgiver_ton_bot and request some coins from the bot by providing your wallet address.

Refresh the explorer after the coins have been sent. As you can see, the balance of the smart contract is now 2 TON. And the «State» remains «Inactive», meaning it still hasn’t been deployed.

So when is your wallet smart contract being deployed? This would normally happen when you execute your first transaction — normally an outgoing transfer. This transaction is going to cost gas, so your balance cannot be zero to make it. Tonkeeper is going to deploy our smart contract automatically when we issue the first transfer.

Let’s send 0.01 TON somewhere through Tonkeeper.

Refresh the explorer after approving the transaction. We can see that Tonkeeper indeed deployed our contract! The «State» is now «Active». The contract is no longer uninitialized and shows «wallet v4 r2» instead. Your contract may show a different version if Tonkeeper was updated since this tutorial was written.

We can also see that we’ve also paid some gas for the deployment and transfer fees. After sending 0.01 TON we have 1.9764 TON remaining, meaning we paid a total of 0.0136 TON in fees, not too bad.

Step 5: Wallets contracts have versions

The explorer shows that «Contract Type» is «wallet v4 r2» (or possibly a different version if your Tonkeeper was since updated). This refers to the version of our smart contract code. If our wallet smart contract was deployed with «v4» as its code, this means somewhere must exist «v1», «v2» and «v3».

This is indeed correct. Over time, the TON core team has published multiple versions of the wallet contract — this is v4 source code.

Let’s look at this well known wallet address of TON Foundation. As you can see, it uses «wallet v3 r2» for its code. It was probably deployed before v4 was released.

Is it possible for the same secret mnemonic to have multiple wallets deployed with different versions? Definitely! This means that the same user may have multiple different wallets, each with its own unique address. This can get confusing. The next time you try to access your wallet using your secret mnemonic and you see a different address than you expect and a balance of zero, don’t be alarmed. Nobody stole your money, you are probably just looking at the wrong wallet version.

Step 6: Set up your local machine for coding

We’re about to use code to access our wallet programmatically. Before we can start writing code, we need to install certain developer tools on our computer.

The libraries we’re going to rely on are implemented in JavaScript. Accordingly, our scripts will be executed by an engine called Nodejs. The installation instructions are here. We will need a fairly recent version of node like v16 or v17. You can verify your nodejs version by running node -v in terminal.

For a choice of IDE, you will need anything that has decent TypeScript support. I recommend Visual Studio Code — it’s free and open source.

Let’s create a new directory for our project and support TypeScript. Open terminal in the project directory and run the following:

Next, we’re going to install a JavaScript package named TonWeb that will allow us to make TON API calls and manipulate TON objects. Install the package by opening terminal in the project directory and running:

Step 7: Get the wallet address programmatically

The first thing we’ll do is calculate the address of our wallet in code and see that it matches what we saw in the explorer. This action is completely offline since the wallet address is derived from the version of the wallet and the private key used to create it.

Let’s assume that your secret 24 word mnemonic is unfold sugar water . — this is the phrase we backed up in step 2.

Create the file step7.ts with the following content:

To see the wallet address, run it using terminal:

Notice that we’re not just printing the address, we’re also printing the workchain number. TON supports multiple parallel blockchain instances called workchains. Today, only two workchains exist, workchain 0 is used for all of our regular contracts, and workchain -1 (the masterchain) is used by the validators. Unless you’re doing something special, you’ll always use workchain 0.

As discussed in step 5, if your wallet has a different version from «wallet v4 r2» you will need to modify slightly the code above. Let’s say for example that your version is «wallet v3 r2», then replace tonweb.wallet.all[«v4R2»] with tonweb.wallet.all[«v3R2»] .

Step 8: Read wallet state from the chain

Let’s take things up a notch and read some live state data from our wallet contract that will force us to connect to the live blockchain network. We’re going to read the live wallet TON coin balance (we saw that on the explorer earlier). We’re also going to read the wallet seqno — the sequence number of the last transaction that the wallet sent. Every time the wallet sends a transaction the seqno increments.

To query info from the live network will require an RPC service provider — similar to Infura on Ethereum. These providers run TON Blockchain nodes and allow us to communicate with them over HTTP. TON Access is an awesome service that will provide us with unthrottled API access for free. It’s also decentralized, which is the preferred way to access the network.

Install it by opening terminal in the project directory and running:

Create the file step8.ts with the following content:

To see the balance and seqno, run using terminal:

If you have network connectivity issues and get errors like backend nodes unhealthy or timeouts, please join the Telegram support chat for TON access to get assistance.

Step 9: Send transfer transaction to the chain

The previous action was read-only and should generally be possible even if you don’t have the private key of the wallet. Now, we’re going to transfer some TON from the wallet. Since this is a privileged write action, the private key is required.

Reward: We will send 0.05 TON to the special address to mint a secret NFT from «TON Masters» collection (testnet link). Here is how your reward looks like:

Create a new file step9.ts with this content:

Execute the script by running in terminal:

Once the wallet signs and sends a transaction, we must wait until TON Blockchain validators insert this transaction into a new block. Since block time on TON is approx 5 seconds, it will usually take 5-10 seconds until the transaction confirms. Try looking for this outgoing transaction in the Tonscan explorer. After running the code, you will see the NFT minted in your wallet soon.

If you’re getting errors in this step, please triple check that the wallet contract you’re using is deployed and funded. If you’re using the wrong wallet version for example, you’ll end up using a wallet contract that isn’t deployed and the transaction will fail.

Conclusion

For your convenience, all the code in this tutorial is available in executable form here.

How to create a TON wallet?

Itez Team

The Open Network (abb. as TON, formerly known as Telegram Open Network) is a blockchain platform originally developed by Nikolai Durov.

What is Surf?

Surf is an all-in-one crypto wallet, blockchain browser and secure chat. Surf is your go-to interface to TON OS and the Free TON Blockchain.

STEP 1

To create your own wallet on TON, go to https://ton.surf/main and click on the “Create a free account” button.

STEP 2

Click on the blue button “Create wallet”

STEP 3

Read and accept the “TON Surf Decentralization Policy” by clicking on the blue “Confirm” button

STEP 4

STEP 5

To retrieve and save a 12-word phrase, to quickly regain access to your wallet, you need to click on the “Ton Surf” icon in the upper left corner.

STEP 6

Click on the “Safety protection” button.

STEP 7

Select the “seed phrase”

STEP 8

Pay attention to the safety warning!

STEP 9

Write down and save the phrase

Don’t share this data with anyone!

STEP 10

You can find your wallet address by clicking on the “Ton Surf” icon in the upper left corner.

STEP 11

Click on the “wallet” button

STEP 12

Then click on the “Manage” button

STEP 13

Click on the wallet with the name “My Surf” and enter the password that you set earlier.

Как создать кошелек ton coin

Пошаговая инструкция как получить 1000 монет WAN и конвертировать их в 200 USDT на Binance

Криптовалюта Toncoin (Ton)

Toncoin (TON) — это блокчейн первого уровня, разработанный мессенджером Telegram в 2018 году. Однако, после заброшенного проекта, фонд TON взял его под свою опеку и переименовал из «Telegram Open Network» в «The Open Network».

С 2020 года разработка технологии продолжается благодаря некоммерческой группе сторонников и независимому сообществу энтузиастов, объединившихся под названием TON Foundation. Toncoin, ранее известный как Gram, является собственной криптовалютой сети TON.

Основная идея заключается в интеграции TON в простое приложение, которое позволяет пользователям покупать, отправлять и хранить средства. Пользователи платят комиссии за транзакции и используют TON для регулирования платежей и подтверждения транзакций. Для масштабирования и обеспечения надежности сети применяется модель консенсуса «proof-stake» (PoS). Согласно информации на сайте проекта, платформа предлагает быстрые, прозрачные и безопасные платежные услуги, упрощая транзакции с минимальными комиссиями и поддержкой сторонних приложений.

Цель разработчиков — создать полноценную экосистему с децентрализованным хранилищем, децентрализованными сервисами, системой доменных имен (аналог DNS), анонимной сетью, платформой мгновенных платежей и быстрой обработкой транзакций.

The Open Network — это блокчейн, управляемый сообществом, с гибкой архитектурой и фокусом на обслуживание типичного пользователя. Одним из преимуществ TON является высокое количество обрабатываемых и валидируемых транзакций в секунду (TPS). В сентябре 2021 года сеть смогла обработать 55 000 TPS во время соревнования, установив мировой рекорд. Однако, текущее количество TPS может достигать сотен тысяч или даже миллионов транзакций. Эта особенность позволяет проекту масштабироваться без потери производительности. Кроме того, проект не наносит вред окружающей среде.

Как заработать криптовалюту Ton

Заработать криптовалюту Ton можно различными способами. Вот несколько возможных способов:

  1. Покупка на бирже: Вы можете купить криптовалюту Ton на криптовалютных биржах, где она торгуется. Для этого вам потребуется зарегистрироваться на бирже, пройти процесс верификации и пополнить свой счет. После этого вы сможете приобрести Ton, используя другие криптовалюты или фиатные деньги.
  2. Участие в программе стейкинга: Если Ton использует модель консенсуса proof-of-stake (PoS), вы можете ставить свои монеты Ton в стейкинг и получать вознаграждение за поддержку сети. Вознаграждения за стейкинг обычно начисляются в виде дополнительных монет Ton.
  3. Участие в майнинге: Если Ton использует модель консенсуса proof-of-work (PoW), вы можете участвовать в майнинге Ton, используя свои вычислительные ресурсы для обработки транзакций и обеспечения безопасности сети. За успешное выполнение заданий по майнингу вы можете получать вознаграждение в виде новых монет Ton.
  4. Участие в программе эирдропов: Иногда проекты Ton могут проводить программы эирдропов, в рамках которых они бесплатно распространяют монеты Ton своим участникам. Вы можете следить за новостями проекта Ton, чтобы узнать о таких возможностях и принять участие в эирдропе.
  5. Работа или предоставление услуг в обмен на Ton: Некоторые проекты Ton могут предлагать вознаграждение в монетах Ton за выполнение определенных задач или предоставление услуг. Вы можете искать возможности работы или предложений на форумах, сообществах или официальных каналах проекта Ton.

Важно помнить, что заработок криптовалюты Ton может быть связан с рисками, и необходимо проводить собственное исследование проекта и оценивать риски, прежде чем вкладываться или участвовать в каких-либо активностях.

Как создать кошелек Ton

Чтобы создать кошелек Ton, вам нужно выполнить следующие шаги:

  1. Скачайте приложение JUSTON: Это приложение доступно только для пользователей с устройствами на операционной системе iOS, таких как iPhone. Вы можете найти его в AppStore или на официальном сайте JUSTON.
  2. Создайте новый кошелек: После запуска приложения JUSTON, вам будет предложено создать новый кошелек или восстановить доступ к ранее созданному некастодиальному кошельку. Если вы создаете новый кошелек, нажмите «CREATE».
  3. Запишите 24 слова: При создании кошелька JUSTON вам будет предоставлено 24 слова. Это ключ от вашего кошелька, поэтому никогда не сообщайте эту комбинацию слов другим людям. Запишите эти слова на бумаге и сохраните их в надежном месте.
  4. Назовите свой кошелек: Выберите имя для вашего кошелька и выберите тему интерфейса. После этого нажмите «DONE».
  5. Используйте главное меню: В главном меню кошелька JUSTON вы увидите адрес вашего кошелька TON, баланс, версию кошелька и меню для ввода, вывода и пополнения средств.
  6. Дополнительные возможности: В кошельке JUSTON вы также можете использовать встроенный веб-браузер Web3, просмотреть список транзакций и использовать сервис VENERA для покупки монет TON.
  7. Выводите средства: Чтобы вывести средства из вашего кошелька, в главном меню нажмите на символ «стрелочка вверх» и введите адрес получателя, сумму и при необходимости комментарии к переводу. Затем нажмите «NEXT» и «SEND».

Важно помнить, что при работе с криптовалютами необходимо обеспечить безопасность вашего кошелька. Никогда не сообщайте свои приватные ключи, фразы восстановления или пароли третьим лицам. Рекомендуется также создать резервные копии вашего кошелька и хранить их в надежном месте.

На каких биржа торгуется Ton (листинг)

Криптовалюта Ton (TON) торгуется на нескольких криптовалютных биржах, включая Kucoin, Bitfinex, Huobi и Bybit. Эти биржи предоставляют возможность покупки и продажи криптовалюты Ton, а также торговли ею по отношению к другим цифровым активам. Важно помнить, что листинг Ton на биржах может изменяться со временем, поэтому рекомендуется проверять актуальную информацию о листинге на официальных ресурсах Ton и на самих биржах. При торговле на криптовалютных биржах следует соблюдать осторожность и проводить собственный анализ и исследование перед принятием решений.

Когда листинг TON на Binance

Листинг на Binance — процесс, в результате которого криптовалюта становится доступной для торговли на платформе Binance. Основные шаги в процессе листинга на Binance включают:

  1. Предварительные требования: Криптовалюта должна соответствовать определенным требованиям, установленным Binance. Это может включать соблюдение правовых и регуляторных требований, аудит и безопасность проекта, ликвидность и активность сообщества.
  2. Подача заявки: Команда проекта подает заявку на листинг на Binance, предоставляя информацию о криптовалюте, технических характеристиках, команде разработчиков, регуляторных соответствиях и других сведениях, которые могут быть требованы.
  3. Оценка и рассмотрение: Binance проводит оценку заявки и проводит детальный анализ проекта. Это может включать технический анализ, юридическую проверку и анализ сообщества. Решение о листинге принимается на основе результата оценки.
  4. Договоренности и техническая интеграция: Если криптовалюта соответствует требованиям Binance и ее заявка на листинг одобрена, происходит заключение соглашений и осуществляется техническая интеграция для обеспечения торговли этой криптовалютой на платформе Binance.

Критерии, которым должна соответствовать криптовалюта TON Coin или любая другая криптовалюта для листинга на Binance, могут включать следующее:

  1. Качественный проект: TON Coin должен представлять собой качественный и перспективный проект с четкой целью, хорошо разработанной концепцией и командой разработчиков.
  2. Безопасность: Криптовалюта должна быть защищена от уязвимостей и иметь надежные механизмы безопасности для защиты пользователей.
  3. Ликвидность: Объем торговли и активность на рынке криптовалюты должны быть достаточными, чтобы обеспечить достаточную ликвидность и интерес со стороны трейдеров.
  4. Регуляторное соответствие: Криптовалюта должна соблюдать правовые и регуляторные требования в соответствующих юрисдикциях.
  5. Комьюнити и поддержка: Проект должен иметь активное и заинтересованное сообщество, которое поддерживает и развивает криптовалюту.

Это лишь общие принципы и критерии, и решение о листинге на Binance принимается на основе комплексного анализа и оценки каждого конкретного проекта.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *