Switch between and inspect the configured TRON networks. The three built-in networks are MAIN, NILE, and SHASTA; you can also point at a custom endpoint. See the configuration reference for how networks are configured locally.
Switch networks at any time. switchnetwork local switches to the network configured in your local config.conf.
Interactive selection:
wallet> switchnetwork
Please select network:
1. MAIN
2. NILE
3. SHASTA
Enter numbers to select a network (1-3):1
Now, current network is : MAIN
SwitchNetwork successful !!!Direct selection by name:
wallet> switchnetwork main
Now, current network is : MAIN
SwitchNetwork successful !!!Custom endpoint (switchnetwork <fullnode> <soliditynode>, empty to omit one):
wallet> switchnetwork empty localhost:50052
Now, current network is : CUSTOM
SwitchNetwork successful !!!View the current network.
wallet> currentnetwork
current network: NILEFor a custom network, the node endpoints are shown:
wallet> currentnetwork
current network: CUSTOM
fullNode: EMPTY, solidityNode: localhost:50052- reference/config — node endpoint configuration