Skip to content

Files

Latest commit

 

History

History

javascript

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Sample TronBox Project

This is a bare-minimum TronBox project.

Configuration

Your configuration file is called tronbox-config.js and is located at the root of your project directory.

Compiling

To compile your contracts, use the following command:

tronbox compile

Migration

The project comes pre-configured with four separate networks:

Mainnet

To deploy your contracts to Mainnet, you can run the following:

tronbox migrate --network mainnet

Shasta Testnet

Obtain test coin at https://shasta.tronex.io/

To deploy your contracts to Shasta Testnet, you can run the following:

tronbox migrate --network shasta

Nile Testnet

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

Localnet

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

Testing

To test your contracts, you can run the following:

tronbox test --network <mainnet|shasta|nile|development>

Work with EVM

TronBox supports deploying contracts on EVM-compatible blockchains.

For more information, please refer to: https://developers.tron.network/reference/work-with-evm

Additional Resources

For further learning, visit the official TronBox site at https://tronbox.io