The Theta Mainnet was launched on 3/15/2019. To connect to the mainnet, open a terminal, and follow the steps below.
Follow the instructions in setup to build and install the Theta ledger. Then, press Ctrl+C
to stop the private net node, and execute the following commands to download the config file and the latest snapshot for mainnet.
Note: when this is not the first time, make sure you have a backup of the key file in the folder ../mainnet/walletnode/key/encrypted
export THETA_HOME=$GOPATH/src/github.com/thetatoken/theta
cd $THETA_HOME
mkdir -p ../mainnet/walletnode
curl -k --output ../mainnet/walletnode/config.yaml `curl -k 'https://mainnet-data.thetatoken.org/config?is_guardian=true'`
wget -O ../mainnet/walletnode/snapshot `curl -k https://mainnet-data.thetatoken.org/snapshot`
Start a screen or tmux session, and use the following commands to launch a launch a node and connect to the Theta mainnet. It may take some time to download the blockchain data to be in-sync with the network.
theta start --config=../mainnet/walletnode
Note: when the mainnet Theta Node is launched for the first time, you need to choose a password to generate an address for the node.
- Please choose a secure password and keep it in a safe place.
- Please make a backup of the key file in the folder
../mainnet/walletnode/key/encrypted
and keep it in a safe place.
The next time when you launch the node again, you will need the password to unlock it.
Use the following commands to launch and connect to the mainnet the next time.
export THETA_HOME=$GOPATH/src/github.com/thetatoken/theta
cd $THETA_HOME
theta start --config=../mainnet/walletnode
NEXT: The API reference