Migrate contracts to different networks
masterYou can deploy your contracts to various networks using the tronbox migrate command with the --network flag. The MetaCoin project supports the following networks:
- Mainnet:
mainnet(https://api.trongrid.io) - Shasta Testnet:
shasta(https://api.shasta.trongrid.io). Obtain test coins at https://shasta.tronex.io/ - Nile Testnet:
nile(https://nile.trongrid.io). Obtain test coins at https://nileex.io/join/getJoinPage - Localnet: Default (http://127.0.0.1:9090). Uses the TronBox Runtime Environment (TRE).
# Deploy to Mainnet
tronbox migrate --network mainnet
# Deploy to Shasta Testnet
tronbox migrate --network shasta
# Deploy to Nile Testnet
tronbox migrate --network nile
# Deploy to Localnet
tronbox migrate