Mainnet Node Setup (Quick Start)
This tutorial will guide you through deploying and running a mainnet validator node on a newly created cloud server.
(This tutorial will use the latest docker image to start the node when the node starts. During the run, sudo privileges will be used. If you don't want to use sudo privileges, please see the manual setup tutorial.
After logging in to the cloud server through ssh, run the following command:
wget https://raw.githubusercontent.com/wanchain/go-wanchain/develop/loadScript/deployMainnetValidator.sh && chmod +x deployMainnetValidator.sh && ./deployMainnetValidator.sh
The script will prompt you to enter the name of the validator, which is used as the display name on the wanstats website.
The script will prompt you to enter the password for the validator account. When you enter the password, not seeing any input on the screen is normal. Press Enter when the input is complete.
The script will prompt you for a second password confirmation.
Please remember to back up your password properly. If this password is lost, there is no way to recover it
After the script is executed, the output will show:
- Validator address
- 2 public keys
- JSON content of the keystore.
NOTE: The validator address should not be used as the registration address where staking funds come from. Don't mix up your validator address and your registration address you use to supply the staking funds.
Carefully backup all this information!
This information together with your password is used to restore your node in case of corruption or loss of data, so it is vital that you store it safely.
You can view the work log using the following command:
sudo docker logs -f gwan
Stop log view by pressing Ctrl-C
If you see the words Validator Start Success, the node has started successfully and chain synchronization is ongoing.
You must fund your validator address with a small amount of WAN in order to pay for PoS transaction fees. As transactions fees are very small, for example, ~0.005 WAN, 100 WAN should be plenty to get started.
- 1.If this is the first time you run a light wallet, you will be prompted to create and back up your mnemonic phrase. Please properly back up the mnemonic, as it is the ONLY way to recover your wallet!
- 2.Transfer the WAN you will be staking to your funding account and wait for the transaction to complete.
For common operations such as restarting, updating, or deleting your node, see the commonly used scripts section.