How to Set Up a TRON Node (the Pragmatic Way)
Run a TRON node without 3 TB of disk: Lite FullNode from a snapshot, systemd and Docker setups, hardware table, costs, and the API break-even.
Reviewed by Maurice Sobiera
A TRON node is a running instance of java-tron, the reference client, that validates blocks and relays transactions. It exposes an HTTP API on port 8090 and a gRPC API on port 50051, through which applications query chain state and broadcast transactions. A Lite FullNode, started from a snapshot, needs far less disk than a full node.
The official documentation covers building java-tron with a JDK toolchain. This guide takes a shorter route: the prebuilt FullNode.jar from the release page plus a Lite FullNode snapshot. Docker follows as the alternative without a local Java install. The guide ends with sync times, a cost estimate and the break-even against an API.
What is a TRON node?
A TRON node runs java-tron and connects you to the network, which produces a block every 3 seconds. Through the HTTP and gRPC APIs you can deploy and call contracts, transfer TRX and tokens, and query chain state. The TRON developer hub documents the node types and hardware.
java-tron releases often. The java-tron releases on GitHub list v4.8.1 (Democritus, February 2026), v4.8.1.1 (Hypatia, June 2026) and v4.8.2.4 (Empedocles, 22 October 2026) as the newest at the time of writing. Check the page for the current version before you download.
There are three node roles:
- A FullNode validates and relays blocks and answers API queries. In almost every case, this is the one you want.
- A witness node produces blocks. This is reserved for the 27 super representatives elected by TRX votes, so the
--witnessflag does nothing useful for anyone else. - A Lite FullNode is the same software with a smaller database. It starts from a snapshot that holds the current state plus the most recent 65,536 blocks.
A Lite FullNode covers what a payments backend needs: current state, new blocks, broadcasting transactions and watching deposits. It cannot answer questions about history from before its snapshot, so querying an old transaction by ID will fail. Explorers and analytics platforms need full history. Most integrations do not.
The three roles side by side:
| Lite FullNode | FullNode (full history) | Witness (SR) node | |
|---|---|---|---|
| Disk | a few percent of a full node; plan 300–500 GB | 4 TB or more of SSD (official recommendation) | 4 TB or more of SSD |
| History | from its snapshot forward | complete since genesis | complete |
| HTTP/gRPC APIs | yes | yes | yes |
| Produces blocks | no | no | yes — only the 27 elected SRs |
| Typical operator | payment backends, integrations | explorers, analytics, compliance archives | elected super representatives |
What hardware does a TRON node need?
The official documentation lists a minimum of 8 CPU cores, 16 GB of RAM, 100 Mbit/s of bandwidth and 4 TB or more of SSD. The recommended profiles are:
| Component | FullNode (full history) | Lite FullNode | Witness (SR) node |
|---|---|---|---|
| CPU | 16 cores | 16 cores | 32 cores |
| RAM | 32 GB | 32 GB | 64 GB |
| Disk | 4 TB+ SSD | a few percent of a full node’s size, growing | 4 TB+ SSD |
| Network | 100 Mbit/s | 100 Mbit/s | 100 Mbit/s |
Source: TRON developer hub, deploy a FullNode. The page gives no exact Lite disk size, so plan 300–500 GB and measure. RAM matters twice on TRON: once for the JVM heap and once for the operating system’s file cache.
Step by step: Lite FullNode with the release jar
Commands assume Ubuntu 24.04.
1. Install Java 8
On x86_64, java-tron supports only JDK 8. On ARM64 it supports only JDK 17, from v4.8.1. The node exits if the JDK does not match the architecture.
sudo apt updatesudo apt install -y openjdk-8-jdkjava -version # must report 1.8.x2. Create a user and directories
sudo useradd --no-create-home --shell /usr/sbin/nologin tronsudo mkdir -p /opt/tron /var/lib/tronsudo chown -R tron:tron /opt/tron /var/lib/tron3. Download the release jar and the mainnet config
No Gradle build needed; every java-tron release ships a ready FullNode.jar:
cd /opt/tronsudo -u tron wget $(curl -s https://api.github.com/repos/tronprotocol/java-tron/releases/latest \ | grep browser_download_url | grep FullNode.jar | cut -d '"' -f 4)sudo -u tron wget https://raw.githubusercontent.com/tronprotocol/tron-deployment/master/main_net_config.confRelease pages publish checksums — run sha256sum FullNode.jar and compare before you run code that will hold network connections open for months.
4. Restore the Lite FullNode snapshot
The database snapshots page on the TRON developer hub lists mirrors in Singapore and the US, in LevelDB and RocksDB flavors. Take LevelDB unless your config says otherwise, because the database engine must match the snapshot. The page describes a Lite snapshot as typically a few percent of a full dataset. The full FullNode archives were listed at about 3.3 TB (compressed) in September 2026, which puts the Lite download in the low hundreds of GB.
Pick the mirror closest to your server, copy the current link and run:
cd /var/lib/tronsudo -u tron wget '<PASTE_LITE_SNAPSHOT_URL>'sudo -u tron tar xzf LiteFullNode_output-directory.tgzThe Lite snapshot contains the current state and the most recent 65,536 blocks. After extraction you should have /var/lib/tron/output-directory containing the database. That folder is the entire “sync from snapshot” trick — the node starts on top of this state instead of replaying years of blocks. If you ever restore the full-history variant instead, use the streamed form the mirrors recommend — wget -qO- '<URL>' | tar xz — so the 3 TB archive never sits on disk next to its extracted copy. For the Lite archive, download-then-extract is fine.
5. systemd unit
Create /etc/systemd/system/tron.service:
[Unit]Description=TRON Lite FullNode (java-tron)After=network-online.targetWants=network-online.target
[Service]User=tronGroup=tronType=simpleRestart=alwaysRestartSec=10WorkingDirectory=/var/lib/tronExecStart=/usr/bin/java -Xms9g -Xmx12g -XX:+UseConcMarkSweepGC \ -jar /opt/tron/FullNode.jar \ -c /opt/tron/main_net_config.conf \ -d /var/lib/tron/output-directory
[Install]WantedBy=multi-user.targetTwo JVM details come straight from the official docs. JVM options such as the garbage-collector flag belong before -jar, not after it. For hosts with 32 GB of RAM or more, the docs suggest setting -Xmx to about 40% of physical RAM and starting -Xms at 9 GB, then tuning under load. The 16 GB examples in the docs use -Xmx12G. The UseConcMarkSweepGC flag applies to JDK 8 on x86_64. systemd stops the service with SIGTERM, which matches the docs’ kill -15 instruction. Never kill -9 a TRON node; LevelDB corrupts, and you will be restoring a snapshot instead of having dinner.
Open the P2P port, keep the API ports private:
sudo ufw allow 18888 comment 'tron p2p'Ports 8090 and 50051 carry no authentication. They stay closed to the internet.
6. Start and verify
sudo systemctl daemon-reloadsudo systemctl enable --now tronjournalctl -fu tronOnce block messages appear, check the height:
curl -s http://127.0.0.1:8090/wallet/getnowblock | jq '.block_header.raw_data.number'Compare the number with the latest block on tronscan.org; curl http://127.0.0.1:8090/wallet/getnodeinfo additionally shows peer count and sync status. When your height tracks the explorer’s, the node is live.
A word on block production, since the official docs spend pages on it: a witness node only makes sense for the 27 elected super representatives. The mechanics — --witness flag plus the SR private key in the localwitness list of main_net_config.conf, or the keystore-plus-password variant if you refuse plaintext keys — are documented upstream. For everyone else, a plain FullNode is the right target.
Docker instead of Java
The official Docker image makes the JDK 8 requirement someone else’s problem:
docker pull tronprotocol/java-trondocker run -d --name tron --restart unless-stopped \ -p 127.0.0.1:8090:8090 -p 127.0.0.1:50051:50051 \ -p 18888:18888 -p 18888:18888/udp \ -v /var/lib/tron/output-directory:/java-tron/output-directory \ tronprotocol/java-tronThe volume mount reuses the Lite snapshot from step 4, so starting the container is not a re-sync. Binding 8090 and 50051 to 127.0.0.1 keeps the APIs private while the P2P port stays reachable. For custom settings, mount your main_net_config.conf into the container and pass -c as a command argument; without it, the image runs mainnet defaults. If your host runs anything else in containers already, this is the cleaner setup — one image upgrade replaces the whole Java stack.
Sync time and snapshot handling
Arithmetic, not promises. As an example, a 150 GB Lite archive at a sustained 50 MB/s downloads in about 50 minutes, and extraction adds minutes on NVMe. TRON produces about 28,800 blocks per day at its 3-second interval. A node imports blocks faster than real time, so catching up from a snapshot of a few days takes minutes to a few hours. A working Lite FullNode fits into one afternoon.
For a full-history node the same math hurts. A 3.3 TB archive at 100 MB/s takes about 9 hours to download before extraction even starts. Syncing from genesis without a snapshot takes far longer. One asymmetry to know: the docs describe a Lite FullNode pruning tool that creates a Lite snapshot from a healthy FullNode. There is no path from Lite back to full, so if you will ever need complete history, start from the full snapshot.
Event streams and gRPC
Polling blocks over HTTP works, but java-tron can also push. The event subscription mechanism, enabled in the event.subscribe block of main_net_config.conf, publishes triggers for new blocks, transactions, contract logs and contract events — into a built-in ZeroMQ queue for light setups, or through plugins into Kafka or MongoDB for real pipelines.
For deposit detection this replaces block scanning: subscribe to contract events, filter for the USDT contract, match the recipient against your customer addresses. One detail decides correctness. The plain triggers fire when a block arrives, but a TRON block only becomes irreversible once enough super representatives have confirmed it; the solidified-trigger variants fire at that point, and they are the ones to credit customer balances from. A deposit credited from an unsolidified block can, rarely, disappear in a reorg.
The second machine interface is gRPC on port 50051: the same wallet operations as HTTP, but protobuf-typed and faster per call under load, which is why most indexers and exchange backends on TRON use it. A practical split: gRPC for your indexer’s bulk reads, HTTP for ad-hoc probes like the curl checks in this guide, and the solidity API (port 8091, when enabled) for queries that must only ever see irreversible state.
What a TRON node costs
A calculation path, not a price list. A Lite FullNode needs 8–16 cores, 32 GB RAM and roughly 500 GB of NVMe — upper-midrange VPS or entry-level dedicated territory, which at European hosts means a mid double-digit to low three-digit euro amount per month, as an order of magnitude. A full-history node needs the 3 TB+ NVMe class, i.e. a proper dedicated server in the low-to-mid three digits.
Add your hours: half a day for setup with this guide, java-tron updates every few months, and an occasional snapshot refresh after a crash. The Lite FullNode is the rare case where self-hosting blockchain infrastructure is genuinely cheap — as long as nobody’s revenue depends on it staying up at 3 a.m.
Monitoring and health checks
Everything worth checking sits behind one endpoint. /wallet/getnodeinfo reports the client version, peer counts, the latest block and the latest solidified block in a single call:
curl -s http://127.0.0.1:8090/wallet/getnodeinfo | jq \ '{version: .configNodeInfo.codeVersion, peers: .currentConnectCount, head: .block, solidified: .solidityBlock}'A healthy node shows the head advancing every 3 seconds and the solidified block trailing roughly 19–20 blocks behind — that is the two-thirds-of-27-SRs confirmation depth, about a minute of chain time. For alerting, compare your head against tronscan or a second node every few minutes and page when the gap passes 40 blocks, two minutes of chain time. systemctl is-active tron plus the peer count from the same call covers liveness.
Because this node is a JVM, watch memory separately: jstat -gcutil $(pgrep -f FullNode.jar) 10s shows garbage-collection pressure, and rising full-GC times appear in that output before the node starts lagging. Round it off with df -h /var/lib/tron at an 85 percent threshold — a Lite node grows slowly, but it grows, and the same cron job that mails you sync status can carry the disk line for free.
Maintenance and upgrades
java-tron releases arrive every one to three months. The release notes of every version from v4.8.0.1 (January 2026) to v4.8.2.4 (October 2026) contain the word “mandatory”. Read the notes of each release to see which upgrades are required, because nodes on old versions can end up on the wrong side of a network rule change. Subscribe to the java-tron release feed and upgrade within the announced window.
The upgrade keeps the database. Download the new FullNode.jar, compare sha256sum against the release page, stop the service (systemd sends SIGTERM, which is the documented clean shutdown), swap the jar in /opt/tron, start again. The node replays the few minutes it missed and is back at the head shortly after.
Two slower-moving chores belong on the list. The Lite database grows with state plus its accumulating block tail; when it outgrows comfort, restore a fresh Lite snapshot — the same move as crash recovery, and the reason this setup keeps recovery cheap. And keep an eye on the Java requirement. According to the deployment documentation, x86_64 builds use JDK 8 and ARM64 builds, added in v4.8.1, use JDK 17.
Security: two API ports, zero authentication
Ports 8090 (HTTP) and 50051 (gRPC) accept anyone who can reach them — no tokens, no accounts, nothing. A node set up as in this guide holds no private keys, so an exposed port does not directly lose funds. It still hands strangers a free RPC service. Heavy query loops against block endpoints can use up the machine’s disk I/O until your own software starves. Assume any internet-reachable port is being scanned today.
The firewall from step 5 is the policy: ufw default deny incoming, then SSH and 18888 (TCP and UDP) — nothing else. When other machines need the API, tunnel with WireGuard or SSH, or put nginx in front with TLS and an IP allowlist, and even then forward only the endpoints you actually call. After every config change, check what really listens with ss -tlnp: java-tron can open additional ports from the config file, the solidity API on 8091 among them, and a port you forgot is a port you did not firewall.
One special case. If you ever put a witness key on a machine, that machine stops being infrastructure and becomes a hot wallet. Separate it from RPC serving, and treat its config file — which can hold the key in plaintext — with the care you would give the key itself.
Troubleshooting
Startup dies immediately with a Java version error
UnsupportedClassVersionError or similar means the JVM is version 11 or newer. Select Java 8 with sudo update-alternatives --config java, or sidestep the problem entirely with the Docker image.
OutOfMemoryError or minute-long GC pauses
-Xmx is sized wrong. Follow the sizing in the deployment docs, about 40% of RAM on hosts with 32 GB or more, and leave memory for the OS file cache. Don’t co-host other memory-hungry services. On a 16 GB machine, the docs use -Xmx12G.
The node starts but stays at the snapshot height
No peers. Check that port 18888 is open for TCP and UDP, look at the peer count in /wallet/getnodeinfo, and verify the clock with timedatectl — NTP must be active. Right after the first start, give peer discovery a few minutes before digging deeper.
Database errors after a crash or reboot
kill -9, an OOM kill or power loss corrupts the database. The fastest fix is also the intended one: wipe output-directory, restore a fresh Lite snapshot, restart — that is the payoff of the small snapshot size. Prevention: always stop via systemd, and keep enough free RAM that the kernel never OOM-kills Java.
The node keeps falling behind the head
Peers are connected, blocks arrive, but the gap to tronscan widens. Check in this order: disk latency (fio random-read benchmark — LevelDB on network storage or SATA is the classic cause), GC pressure (jstat -gcutil, see the monitoring section), then CPU contention from co-hosted workloads. TRON’s 3-second cadence forgives short stalls; a lag that grows for hours means the machine cannot keep up, and no configuration flag fixes undersized hardware.
The disk runs full
df -h, then du -h --max-depth=2 /var/lib/tron. The usual finding is a forgotten snapshot archive — the .tgz can rival the extracted database in size. If output-directory itself has outgrown the volume, restore the newest Lite snapshot onto a bigger disk; the restore resets the accumulated block tail at the same time. The 85-percent alert from the monitoring section turns this from an outage into a calendar entry.
Why people run TRON nodes at all: USDT
The most common reason is USDT-TRC20. Blocks arrive every 3 seconds, and a transfer costs a few TRX, so TRON is used for USDT payments. Your own node lets you watch customer deposits and broadcast payouts without a middleman.
The mechanics deserve one level more detail, because they shape the architecture. A USDT deposit is not a TRX transfer — it is a call to the USDT smart contract, so it never appears in plain TRX balance queries. Detecting it means decoding TRC-20 Transfer events out of every block, or subscribing to them through the event mechanism above, and crediting only after solidification: roughly 19 blocks, about a minute, as described in the consensus documentation.
Payouts have their own economics. A USDT transfer consumes Energy, and a wallet without staked TRX pays for it by burning TRX. Our TRON fee calculator estimates roughly 6.4 TRX to an address that already holds USDT and roughly 13.4 TRX to an empty one, at an Energy price of 100 Sun. Governance votes can change the price, so read it from GET /api/v2/tron/chainparameters before you build on it.
Operations at volume stake TRX for energy instead, which is what the freeze and delegate mechanics exist for.
But be clear about what a raw node hands you: HTTP and gRPC endpoints, nothing more. Detecting a customer’s USDT deposit means scanning every block for TRC-20 transfer events against your address list, handling confirmations and retries yourself. And TRON’s fee system — bandwidth, energy, freezing TRX, sponsoring fees for users — is its own field of study; the TRON fee calculator shows what a USDT transfer really costs before you build around it.
Run your own node — or use an API?
An honest comparison, since Chaingateway sells the alternative.
Run the node when you read the chain at scale — indexing, monitoring the network beyond your own addresses, feeding gRPC into your own pipeline — or when policy says no third parties. The Lite FullNode’s low cost means heavy read workloads amortize quickly; this is one of the cheapest self-hosted nodes among the major chains.
Use an API when the node would only be plumbing for payments. On top of a synced node you would still build address generation per customer, TRC-20 deposit detection, webhook delivery, key storage and fee management. Chaingateway’s TRON API is that layer as REST endpoints: import addresses (POST /api/v2/tron/addresses/import), send USDT and other TRC-20 tokens (POST /api/v2/tron/transactions/trc20) or TRC-10 assets, freeze and delegate resources for energy (POST /api/v2/tron/freeze, POST /api/v2/tron/delegate), and receive HMAC-signed deposit webhooks; failed deliveries appear at GET /api/v2/tron/webhooks/notifications/failed and can be resent via the retry endpoint.
The break-even as arithmetic: (server + snapshot refreshes + your hours × your rate) versus a plan on /pricing/. For deposit-and-payout use cases, the API side stays smaller until serious scale; for raw chain reading, the node side wins almost immediately. The quickstart and the webhook guide cover a first end-to-end test, and the 7-day trial requires no KYC (register).
Running EVM chains too? See the setup guides for Ethereum and BNB Smart Chain.
Frequently asked questions
A Lite FullNode starts from a snapshot of a few percent of the full database; plan 300–500 GB of NVMe for growth. A full-history FullNode needs more than 3 TB. The compressed snapshot archives on the TRON developer hub were listed at about 3.3 TB to 4.4 TB in September 2026, and the official hardware table recommends 4 TB or more of SSD.
Officially java-tron targets Linux and macOS. On Windows, the practical route is the Docker image, which pins the whole environment including Java 8.
No. Block rewards go to the 27 elected super representatives and their voters through staking. A FullNode gives you independent chain access, not income.
JDK 8 for x86_64 and JDK 17 for ARM64, which java-tron supports from v4.8.1. The node exits if the JDK does not match the CPU architecture. This is the single most common setup failure, and the reason the Docker image exists in this guide.
Same software, different database. The Lite variant starts from a snapshot of the current state plus the most recent 65,536 blocks, and cannot answer queries about transactions from before its snapshot. Payments work; block-explorer history does not.
Ready to build this yourself? Get your API key — 7-day trial, no card required — or see the Tron API for the full endpoint reference.