This quide contains simple steps how-to deploy example smart contract to TON.
Please, follow INSTALLATION.md
(for test engine special version of builds needed)
toncli start wallet
cd wallet
"wallet" is a project and folder name.
toncli deploy -n testnet
It this case contract is deploying to testnet, you can switch it to mainnet if you want
To call a GET method of your contract you can use this command:
toncli get hello_world
in the directory of your contract, where hello world is the name of a GET method
- External data
- To use this function you need to run
toncli start external_data
- It loads data of another smart-contract
- For detailed usage info you can read Example
- To use this function you need to run
- External code
- To use this function you need to run
toncli start external_code
- Using this function you can load code and data of another contract
- For detailed usage info you can read Example
- To use this function you need to run
On first start ~/.config/toncli/
(on linux, other systems will have diffrent directory) will be created. If you want
to change fift/func libs, network config or other stuff - check it out.