Please follow the below steps to generate a Masternode private key.
- Download and install the latest Olc wallet on Windows - https://github.com/ProjectOnlineLeague/OLC-Core/releases
- Open the wallet and go to Help->Debug window and then click on the Console tab.
- In the console screen type and execute this command: masternode genkey
- Copy this to a blank text document as you will need this later.
You will need a VPS for this part of the guide, so you do not have to keep your Windows wallet open 24/7. If you do not have a VPS you can get one from here Vultr.
Once you have setup your VPS you need to download and run the install script using this command:
cd && bash -c "$(wget -O - https://raw.githubusercontent.com/ProjectOnlineLeague/masternode-install/master/install.sh)"
The installation script will give you 6 different options to choose from:
- Install a fresh Masternode
- Update Masternode Wallet
- Start Masternode
- Stop Masternode
- Show Masternode status
- Rebuild Masternode
Once your VPS installation has finished type olc-cli getinfo and check the block count against the official explorer. When the block count is the same you have finished with the setup.
Once your VPS is up and running and your Olc wallet has synced, you then need to configure your Windows wallet.
- Open your Olc Windows wallet.
- Click Help -> Debug window and then click on the console tab.
- Enter getnewaddress MN1 and send exactly 1500 OLC to this address.
- Go to back into the console tab and type masternode outputs
- Copy this to the same place your copied your Masternode Private Key earlier.
- Go to %appdata%\Olc and create a file called masternode.conf and fill it with the following.
Layout of masternode.conf
LABEL IP_ADDRESS:PORT MASTERNODE_PRIVATE_KEY MASTERNODE_OUTPUTS
Example masternode.conf
MN1 127.0.0.1:2501 5J35uXCcNFaQByrnK4YEFqCPQErJ8SzU7QPyjFg5atiC4BH3yqU 3d4011efd463f55cad9021899b8c7b06494e27ba0d186cc2de39d6d0d0ebbb4d 0
Restart your Windows wallet and go to the masternode tab. You should see your masternode sitting there with a status of MISSING. Click Start all and the status should change to PRE_ENABLED. After 15-30 minutes this should then change to ENABLED.
- Log back into your VPS and type olc-cli masternode status
- If you see Masternode successfully started everything is setup correctly.
- Check the official block explorer to see if your masternode is listed - https://explorer.online-league.io/masternodes
- You are now finished and should start receiving rewards in the next 1 - 3 hours.