The TRON Developer Hub

Welcome to the TRON developer hub. You'll find comprehensive guides and documentation to help you start working with TRON as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

Creating and Compiling

This section walks through the creation and compilation of the Hello World contract. Below is the contract written in solidity.

// Specify version of solidity file (
pragma solidity ^0.4.0;

contract HelloWorld {
    // Define variable message of type string
    string message;

    // Write function to change the value of variable message
    function postMessage(string value) public returns (string) {
        message = value;
        return message;
    // Read function to fetch variable message
    function getMessage() public view returns (string){
        return message;

Compiling in Tron Studio

Tron Studio (similar to Remix IDE on the Ethereum platform) is a user-friendly IDE for developing contracts. Please refer to the documentation for instructions on downloading and launching Tron Studio.

Once Tron Studio is launched, please copy and paste the Hello World smart contract source code into the main window. Then select the Compile button under the Compile tab in the far right window.

Viewing Contract Data

In a successful compile, you will see the Hello World smart contract data by clicking the Detail button under the compile tab. The Detail Window contains the contract byte code, which is the hexadecimal representation of the final contract. Also, you will see the contract ABI, which is the standard way to interact with contracts in the Tron ecosystem. Click OK on the bottom right to close this window.

Creating and Compiling

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.