Documentation
Learn everything about the Theta Network.

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 and Installation to build and install the Theta Blockchain node software. 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 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

Updated 6 months ago


What's Next

NEXT: The RPC API reference

RPC API Reference

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.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.