On launch, something like this would open up:

Step 2: Coding and compiling the smart contract

One of the best parts about developing on TRON is that the dev stack is very similar to Ethereum. No new language has to be learned to execute the contracts. Our dear old Solidity works perfectly fine!

My all-time favorite program is to add two numbers! So let’s do that.

pragma solidity ^0.4.24; contract Addition {

int public sum = 0;



function add (int x, int y) public {

sum = x + y;

}

}

Click on COMPILE in the IDE. You should see something like this:

Step 3: Run the smart contract

Go on the RUN tab and click on DEPLOY. You should see something like this.

Step 4: Let’s Add the numbers!

Click on the deployed contract under Deployed Contracts. You should see such an interface.

Let’s pass in the parameters and click add.

Now to get the sum, let’s click on sum.

You see contract result is 10!

If you see this, then you’ve successfully deployed a smart contract on the TRON blockhain.