HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
Guides

Creating and Compiling

Tron-IDE (similar to Remix IDE on the Ethereum platform) is a user-friendly IDE for developing contracts. For more information on how to use Tron-IDE, please refer to the Tron-IDE Introduction. This guide explains how to create and compile a smart contract in Tron-IDE.

Prepare Contract Files

After entering the FILE EXPLORER tab, click the "Create New File" icon to create a contract file, or select the "Load a local file into current workspace" icon to import pre-written contract code from your local machine.



You can use the trc20 contract template to issue your TRC-20 token.

Compile Contract

Enter the SOLIDITY COMPILER tab in Tron-IDE, select the appropriate compiler version, and configure compilation parameters, such as whether to enable optimization and the number of optimization runs (These parameters will be needed again during contract verification, so please keep them in mind.). After setting up, click the Compile button to compile the contract.



View Contract Data

After compilation, click Compilation Details to view the data of the smart contract.
The details contain the contract name, ABI, bytecode, Etc.