Complete guide for integrating Tron networks into your Bicrypto Ecosystem
This guide shows you how to integrate Tron networks (mainnet and testnets like Shasta and Nile) into your Bicrypto Ecosystem. Tron differs from EVM and UTXO chains but follows a similar configuration pattern in Bicrypto.
Tron mainnet, Shasta, and Nile testnets are supported. TRX is used for transaction fees. Support for TRC-20 tokens is available.
Add the following Tron-specific variables to your .env file:
# Tron Networks (mainnet, shasta, nile)
TRON_API_KEY="YOUR_TRON_API_KEY" # e.g., 7afcd010-b06b-449d-b882-902bc55f7e8e
TRON_NETWORK="mainnet"
TRON_MAINNET_RPC="https://YOUR_MAINNET_RPC_PLACEHOLDER"
TRON_SHASTA_RPC="https://YOUR_SHASTA_RPC_PLACEHOLDER"
TRON_NILE_RPC="https://YOUR_NILE_RPC_PLACEHOLDER"
• TRON_API_KEY: Your TronGrid (or similar) API key
• TRON_NETWORK: Active network (mainnet, shasta, or nile)
• RPC URLs: Corresponding endpoints for each Tron network
Create an account at TronGrid or use a self-hosted node. TronGrid provides API keys for authenticated requests.
• Mainnet: https://api.trongrid.io
• Shasta: https://api.shasta.trongrid.io
• Nile: https://api.nileex.io
Tron uses TRX as its native coin for transaction fees. The Master Wallet will manage TRX fees and any TRC-20 tokens.
Enable TRX (native) and TRC-20 tokens (e.g., USDT on Tron) that you plan to support.
Tron fees are typically low, but peak network usage can increase resource consumption. Adjust minimum fees accordingly.
For testing, set TRON_NETWORK="shasta" or "nile". Acquire test TRX from faucets.