Tron-IDE is an online editor that helps developers develop smart contracts. It has the characteristics of modularity, and provides editing, compiling, deploying, and debugging smart contracts in the form of plug-ins. If you have experience using remix, then using Tron-IDE will be more familiar and convenient. If you are a beginner, please read the following.

Environment

  • Chrome
    No matter what system your computer is, you need to install Chrome browser first. Chrome browser is the carrier of Tron-IDE.

  • TronLink
    Tron-IDE needs to configure account and node through the TronLink wallet. Search for the keyword 'TronLink', you can install it. If you don’t know about TronLink, here is how to use it

  • URL
    http://www.tronide.io

📘

Note

Please be patient, it will take a few seconds for the first load.

Home page

2786

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.

720

And select the node.

714

📘

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 .

2542 2350

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 .

2786

Deploy Smart Contracts
After successful compilation, use the deployment plugin (DEPLOYMENT). After successful deployment, the terminal will return transaction information.

2786

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'.

2784