HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
Guides

Getting Started

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

TRON is mainly different from Ethereum in the following aspects:

  • Consensus Mechanism
    The Ethereum network uses the POS consensus mechanism, while TRON's consensus mechanism is DPOS. For more information about the TRON consensus mechanism, please refer to TRON Consensus Mechanism.
  • Resource Model
    Ethereum transactions require gas fees, and TRON network transactions require Bandwidth and Energy resources, where Bandwidth is a unit to measure the size of a transaction in bytes. The larger a transaction is, the more Bandwidth will be consumed. Energy is a unit that measures the amount of computation required for TRON Virtual Machine (TVM) to perform specific operations on the TRON network, and is calculated in the same way as that of Ethereum. The more instructions a transaction executes, the more Energy it will consume. The amount of Energy consumed by each instruction is also different. For more information about Bandwidth and Energy, please refer to TRON Resource Model.
  • TVM
    TVM of TRON and EVM of Ethereum are compatible but differ in some details, please refer to Differences between TVM and EVM.
  • API
    Ethereum supports JSON-RPC 2.0 specification APIs, while TRON supports Http and gRPC APIs. Besides, 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 topic according to your needs:

For DApp Developers

If you have Ethereum development experience, you will easily master development on TRON, whose smart contract development language is Solidity. The development tools are also similar to those you have been familiar with on Ethereum (such as Truffle, Remix, and Web3js). Therefore, you will be able to use them proficiently in very little time.

Tools

The following list contains tools for developing and deploying smart contracts on TRON:

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

Wallet

Like MetaMask, TronLink can also be connected to your DApps. Currently, the wallet supports Chrome extension, Android app, and iOS app installation.

Tutorial

If you have zero experience developing DApps on TRON, you can look at the tutorial below, which is beginner friendly by covering the whole set of processes from compiling contracts and UI interaction to deploying and launching DApps. By learning to build a decentralized library as an example, developers can easily master how to deploy their own DApps on the TRON network.

Testnets

You may deploy your DApp on Shasta and Nile testnets as well as the TRON Mainnet. To learn more, please refer to Network.

For Super Representatives and Voters

A Super Representative (SR) is a participant in the network, running a full node for block production. There are 27 SRs in total, who are elected by voting and are responsible for the verification and generation of blocks on the TRON network. In addition, SRs are also responsible for the governance of the network, playing a vital role in ensuring the normal operation of the network.

Voters stake TRX to obtain voting rights and resources (Energy or Bandwidth). Those obtained voting rights can be voted for SRs and then bring voters rewards at the same time.

Exchange/Wallet Integration with the TRON network

If you are running an exchange or providing a wallet service, you can click here to learn more about integration with TRON.