Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.88 KB

File metadata and controls

37 lines (28 loc) · 1.88 KB

Connect to the Mainnet

The Theta Mainnet was launched on 3/15/2019. To connect to the mainnet, open a terminal, and follow the steps below.

Step 1. Setup

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`

Step 2. Launch and connect to the mainnet

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.

  1. Please choose a secure password and keep it in a safe place.
  2. 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