2. Create a masternode private key.
Under the Tools menu option, and Console tab, input createmasternodekey and press Enter. This will generate and display a masternode private key. Copy that to your clipboard.
- Edit the masternode.conf file using your favorite text editor (it will be located in your wallet data directory *).
By default the wallet data directories are:
* Windows: %APPDATA%\SUPERDOGE\
* Mac OS: ~/Library/Application Support/SUPERDOGE/
* Unix/Linux: ~/.superdoge/
Create a new line below the example following the same format (don’t include the # at the beginning of the line).
# Masternode config file
# Format: alias IP:port masternodeprivkey collateral_output_txid collateral_output_index
# Example: mn1 127.0.0.2:7373 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
<alias> <ip>:<port> <masternodeprivkey> <collateral output txid> <collateral index>
Alias – A name for the node (no spaces or special characters). IE: MN1
IP:PORT – This needs to be the externally accessible IP and Port for your MasterNode.
If you’re running from a VPS, it will be the server’s IP and Port provided to you. If you’re running from a home PC, it will be the external IP your ISP assigns to you (https://icanhazip.com to retrieve). You will need to configure Port-Forwarding to forward TCP/7373 to your internal PC. You will also need to open a port in the firewall to allow TCP/7373 through.
MasterNodePrivateKey – This is the key generated in the step (2)
Collateral_Output_TxID – This is the transaction ID for your collateral transaction. Generated at step (6).
Collateral_Output_Index – This is the index ID from your collateral transaction. Generated at step (6).
- Create your collateral receiving address by clicking on the Receiving menu option
Enter a label, and click Request Payment.
It will generate an address and display a popup similar to this:
Copy the Address to your clipboard.
- Click on the Sending menu option, and paste the Receiving Address you just created and copied to the clipboard, into the Pay To: field.
Note! Creating a Silver or Gold masternode is the same process, but if you create a Silver masternode to later convert to a Gold masternode, there are a few additional steps. See the notes at the end of the guide.
Enter the exact amount of collateral to send.
Press Send and confirm the transfer.
Review your transaction by clicking on the Transaction History menu option and wait for it to be confirmed (6 confirmations required).
- Retrieve the collateral transfer details.
Click on the Tools menu option, then the Console Tab. Input getmasternodeoutputs and press Enter. This will display the txhash (long hash) and outputidx (integer, usually 0 or 1), these are the values needed for Collateral_Output_TxID (txhash) and Collateral_Output_Index (outputidx) in Step 3. Use these values to complete the update of the masternode.conf file, save and close it.
- Edit the supderdoge.conf file using your favorite text editor (it will be in the same folder as your masternode.conf file). Add the following lines:
- Save and close the file.
- Close the SuperDoge wallet (cleanly) and then reopen it.
- Once the SuperDoge wallet reloads, allow it to resync to the blockchain. Verify the MasterNode has started by looking at the My MasterNodes tab under the Browse MasterNodes menu option. If it hasn’t, select your masternode in the list, and click Start alias.
- Verify MasterNode Status.
Click on the Tools menu option, then the Console Tab. Input getmasternodestatus and it will output your MasterNode Status. It should look similar to this:
After starting a masternode its status may change in the following order:
“ACTIVE” –> for around 2 – 3 hours after starting it
“EXPIRED” –> It will be just for a couple of minutes
“REMOVED” –> for just a couple minutes
“ENABLED” –> Eventually the masternode will remain in this status and the “Active” time will start increasing.
Do not be impatient! The first masternode reward takes 2x or 3x longer to come than regular rewards later. If you start the masternode again from the wallet, this timer will reset to zero.
Converting a Silver masternode to a Gold masternode requires you to comment out the configuration lines in your masternode.conf and superdoge.conf files and restarting your wallet. You will have to wait for your masternode to be removed from the masternode list (see below), then follow this guide again to re-create the masternode, but using the higher collateral amount (4000).
When you stop a masternode, it will remain Enabled for about 2 hours. If the node is not restarted within that timeframe, it will change to Expired. It will remain Expired for about 10 minutes and then change to Remove. It will then be removed from the masternode list shortly thereafter.
More information can be found at the SuperDoge wiki entry for masternode configuration: https://github.com/superdoge-project/superdoge/blob/main/doc/masternode_conf.md