TRON Developer Hub

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    

SR Full Node

Hardware Requirements
Full & Solidity Node Minimum Requirements

  • CPU: 16 Core
  • RAM: 32 G
  • Bandwidth: 100 M
  • Disk Space: 1 T

Full & Solidity Node Recommended

  • CPU: 64+ Cores
  • RAM: 64+ G

First Steps

For the initial setup steps, follow the instructions for Full Node up until the Mainnet Integration. At that point, please follow the below steps as there is some divergence, including file modifications.

Running a Private Testnet

Modify the config.conf file. This file is located in the directory /java-tron/build/resources/main/config.conf.

Modify witnesses under genesis.block to your own address:

Modify ip.list under seed.node to your own ip list:

On the first Super Node start, set needSyncCheck as false:

Under p2p, set version to 61:

Use the executable JAR. Add your private key under localwitness.

cd build/libs
java -jar java-tron.jar -p yourself private key --witness -c yourself config.conf

Example:

cd build/libs
java -jar java-tron.jar -p 650950B193DDDDB35B6E48912DD28F7AB0E7140C1BFDEFD493348F02295BD812 --witness -c /data/java-tron/config.conf

In the Terminal run:

./gradlew run -Pwitness=true

In IntelliJ IDEA

  1. Open the configuration panel.

  2. In the Program arguments option, fill in --witness

  3. Run FullNode::main() again.

Running an SR Node

  • Use the executable JAR(Recommended way)
cd build/libs
java -jar java-tron.jar -p yourself private key --witness -c yourself config.conf(Example:/data/java-tron/config.conf)
Example:
java -jar java-tron.jar -p 650950B193DDDDB35B6E48912DD28F7AB0E7140C1BFDEFD493348F02295BD812 --witness -c /data/java-tron/config.conf

It is almost the same as that does in the private testnet, except that the IPs in the config.conf are officially declared by TRON.