Getting started
Welcome to TON quick start guide! This guide will give you a starting point for further research of TON concepts and basic practical experience of developing applications with the TON Ecosystem.
Prerequisites
- Basic programming knowledge.
- Around 30 minutes of your time.
Note: We will provide a short explanation of core concepts during the guide, but if you prefer a more theoretical approach, you can check out core concepts of TON Blockchain first.
What You'll Learn
- Interact with TON Ecosystem: Wallets and Explorers.
- Setup development environment: use Blueprint SDK for developing
smart contracts
usingFunC
,Tact
, andTolk
programming languages. - Send transactions and read from TON Blockchain using your preferred programming language and available SDKs.
- Core concepts of TON Blockchain:
messages
,smart contracts
,addresses
and etc. - Basic templates ready for implementation of your project logic.
Concept of smart contract
You can think of smart contracts in TON as a program running on blockchain following well known behavior concept of actor.
In contrast to some other blockchains where you can call in synchronous way other contracts code, smart contract in TON is a thing in itself, and communicates with other smart contracts on equal basis sending asynchronous messages between each other.
Each processing of message by receiver smart contract is considered a transaction resulting in following actions:
- Sending further messages.
- Changing internal data or even code of smart contract itself.
- Changing it's balance.
Available interfaces of smart contract are:
- Receiving
internal messages
from other smart contract. - Receiving
external messages
from outside the blockchain. - Receiving
get methods
request from outside the blockchain.
In contrast to internal
and external
messages, get methods
are not what you can consider as a transaction. Those are special functions of smart contract that cannot change contract internal state or proceed any other action except querying specific data from contract state.
Contrary to what might seem intuitive, invoking get methods
from other contracts is not possible.
Interacting with TON Ecosystem
Before we step on our way of becoming a TON developer, we should become an advanced user of TON! Let's create your own wallet
, send a few transactions, and see how our actions are reflected on the blockchain using explorers
.
Step 1: Create a new wallet using an app
The simplest way to create a wallet
is to visit https://ton.org/wallets and choose one of the wallet apps from the list. They are all pretty similar, let's choose Tonkeeper. Go ahead, install and run it.