Getting Started

TRON is an open-source public blockchain platform that supports smart contracts. TRON is compatible with Ethereum, which means that you can migrate smart contracts on Ethereum to TRON directly or with minor modifications. TRON relies on a unique consensus mechanism to realize the high TPS of the TRON network that is far beyond Ethereum, bringing developers a good experience of faster transactions.

TRON is different from Ethereum, mainly in the following aspects:

  • Consensus Mechanism
    Currently, the Ethereum network adopts the POW consensus and will adopt the POS consensus in the future. TRON's consensus mechanism is DPOS. For more information about the TRON consensus mechanism, please refer to TRON consensus mechanism.
  • Resource Model
    Ethereum transactions need to pay gas fees, and the TRON network transactions need to pay bandwidth and energy fees, where bandwidth is a unit to measure the size of a transaction in bytes. The larger the transaction, the more bandwidth resources will be consumed. Energy is a unit that measures the amount of computation required for TVM to perform specific operations on the TRON network. Energy is calculated in the same way as Ethereum. The more instructions a transaction executes, the more energy it consumes, and the amount of energy consumed by different instructions are different. For more information about bandwidth and energy, please refer to TRON Resource Model.
  • TVM
    TRON TVM and Ethereum EVM are compatible but differ in some details, please refer to Differences between TVM and EVM
  • API
    Ethereum supports JSON-RPC 2.0 specification APIs, TRON supports Http and gRPC APIs, and TRON also provides Ethereum-compatible JSON-RPC 2.0 APIs.

Overview

This document is designed to help you build Web3 applications on TRON, including the introduction of TRON's basic concepts and core modules, development tools, and various examples. You can choose a theme according to your needs:

For DApp Developers

If you have Ethereum development experience, then you will easily master TRON development. TRON's smart contract development language is Solidity. The development tools are similar to the tools you are familiar with on Ethereum (such as Truffle, Remix, and Web3js), you can use them proficiently in very little time.

Tools

Below, you may find tools for developing and deploying smart contracts in TRON,

  • TronBox: CLI tool used to compile and deploy smart contracts, is similar to Ethereum Truffle
  • Tron-IDE: GUI tool used to compile and deploy smart contracts, is similar to Ethereum Remix
  • TronWeb: Javascript SDK supporting TRON, is similar to Ethereum Web3.js

Wallet

Like MetaMask, you can connect your DApp with Tronlink, which supports Chrome, Android, and IOS.

Tutorial

If you have zero experience developing DApp in TRON, you may find the tutorial below that is friendly and helpful. It includes a complete set of processes from compiling contracts and UI interaction to deploying and launching. By learning to build a decentralized library, developers can easily master how to deploy their own DApps on the TRON network.

Testnet

You may deploy your DApp to Shasta and Nile testnet as well as the TRON mainnet. To learn more, please check
Network.

For Super Representatives and Voters

The super representative is a participant in the network, running a fullnode for block production, 27 in total. They are elected by voting and are responsible for the block verification and generation of the TRON network. In addition, the super representatives are also responsible for the governance of the network, which plays a vital role in the healthy operation of the network.

Voters stake TRX to obtain voting rights and resources (energy or bandwidth), and the obtained voting rights can vote for super representatives and receive rewards at the same time.

Exchange/Wallet integrate with the TRON network

If you run an exchange or provide a wallet service, you may refer to here for integration with TRON.