Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 1.98 KB

quick_start_guide.md

File metadata and controls

61 lines (42 loc) · 1.98 KB

toncli Quick start guide

This quide contains simple steps how-to deploy example smart contract to TON.

1. Install ton / toncli

Please, follow INSTALLATION.md

(for test engine special version of builds needed)

2. Create simple project

1. start project

toncli start wallet
cd wallet

"wallet" is a project and folder name.

2. deploy example contract

toncli deploy -n testnet

It this case contract is deploying to testnet, you can switch it to mainnet if you want

3. Call a method of contract

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

Other types of projects

  1. External data
    1. To use this function you need to run toncli start external_data
    2. It loads data of another smart-contract
    3. For detailed usage info you can read Example
  2. External code
    1. To use this function you need to run toncli start external_code
    2. Using this function you can load code and data of another contract
    3. For detailed usage info you can read Example

Configuration

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.

Other docs

  1. All commands of cli
  2. Run get methods
  3. Multiple contracts
  4. Send boc with fift
  5. Transaction debug
  6. Project structure
  7. Interesting features
  8. Send internal fift messages
  9. How func tests works?