GUI and Usage
This article is used to introduce the usage of Tron-IDE, introduce the main page in the form of graphics, and complete the deployment of smart contract and function call.
Home page
![WX20200219-113853@2x.png 2786](https://files.readme.io/66438f9-WX20200219-1138532x.png)
The main interface of Tron-IDE is mainly composed of the above sections 1-4:
Left 1 position, plug-in selection menu
Left 2 position, plug-in function menu
Right 3 position, Home page and plugin function menu page
Right 4 position, log and terminal
Deploy smart contracts and call the function.
Login account and select network
Before deploying a smart contract, you need to log in to TronLink with the account which you want to deploy the smart contract.
![WX20200219-153822@2x.png 720](https://files.readme.io/7670077-WX20200219-1538222x.png)
And select the node.
![WX20200219-154712@2x.png 714](https://files.readme.io/78af865-WX20200219-1547122x.png)
Note
If you are using a new account of the shasta, you can get test coin here.
Edit a smart contract
To deploy a smart contract, you need to use the Plugin Manager to load the corresponding plug-ins. File Explorers are loaded by default. In the function menu of this plug-in, we can create a new file through the button to edit a smart contract .
![WX20200219-150836@2x.png 2542](https://files.readme.io/b258a84-WX20200219-1508362x.png)
![WX20200219-153207@2x.png 2350](https://files.readme.io/2a30b06-WX20200219-1532072x.png)
Compile Smart Contract
Use the SOLIDITY compiler plug-in (Solidity compiler), select the appropriate version, and compile the edited smart contract. After the compiling is successful, it will return the compiling result information, including ABI, Bytecode, etc .; if the compilation fails, the specific information in red will be returned in the lower left .
![WX20200219-161336@2x.png 2786](https://files.readme.io/6061473-WX20200219-1613362x.png)
Deploy Smart Contracts
After successful compilation, use the deployment plugin (DEPLOYMENT). After successful deployment, the terminal will return transaction information.
![WX20200219-163751@2x.png 2786](https://files.readme.io/d514543-WX20200219-1637512x.png)
Call the function
After successful deployment, the smart contract address is automatically loaded, and the function can be called in the drop-down menu; the existing smart contract address can also be loaded through the button 'At Address'.
![WX20200219-164514@2x.png 2784](https://files.readme.io/8bccc94-WX20200219-1645142x.png)
Updated over 4 years ago