This is a bare-minimum TronBox project.
Your configuration file is called tronbox-config.js
and is located at the root of your project directory.
To compile your contracts, use the following command:
tronbox compile
The project comes pre-configured with four separate networks:
- Mainnet (https://api.trongrid.io)
- Shasta Testnet (https://api.shasta.trongrid.io)
- Nile Testnet (https://nile.trongrid.io).
- Localnet (http://127.0.0.1:9090)
To deploy your contracts to Mainnet, you can run the following:
tronbox migrate --network mainnet
Obtain test coin at https://shasta.tronex.io/
To deploy your contracts to Shasta Testnet, you can run the following:
tronbox migrate --network shasta
Obtain test coin at https://nileex.io/join/getJoinPage
To deploy your contracts to Nile Testnet, you can run the following:
tronbox migrate --network nile
The TronBox Runtime Environment provides a complete development framework for Tron, including a private network for testing.
Get tronbox/tre docker image at https://hub.docker.com/r/tronbox/tre
To deploy your contracts to Localnet, you can run the following:
tronbox migrate
To test your contracts, you can run the following:
tronbox test --network <mainnet|shasta|nile|development>
TronBox supports deploying contracts on EVM-compatible blockchains.
For more information, please refer to: https://developers.tron.network/reference/work-with-evm
For further learning, visit the official TronBox site at https://tronbox.io