-
Notifications
You must be signed in to change notification settings - Fork 0
Send the Collateral
As of the writing of this guide, you require 15,000 XSN to run a Masternode.
Once it has been sent, various keys regarding the transaction must be extracted for later entry in a configuration file as proof that the transaction was completed successfully.
- Again I'm assuming you are using Linux or Mac (This one with a GUI). For windows guide please check the ones on XSN Discord.
For security concerns, it is better to have your wallet on a computer other than the server running the Masternode (hot/cold setup)(your personal computer, hardware wallet, etc).
mkdir ~/.xsncore/
2. Download the latest wallet version from XSN Official Repo. Since both Linux and Mac are based on UNIX, you could apply these steps for both systems using any command-line app (please make sure to replace download URL for MAC version.
wget https://github.com/X9Developers/XSN/releases/download/v1.0.13/xsn-1.0.13-linux64.tar.gz
Please take a closer look at the URL, and replace with whatever the latest version it is today.
tar xfvz xsn-1.0.13-linux64.tar.gz
./xsn-1.0.13/bin/xsn-qt
6. Request for your 15,000 XSN to easily generate a new address with label (alias). Fill in the form to request the payment to yourself:
- Label:
mn01
(you can use whatever name you prefer to identify the masternodes) - Amount:
15000
(this is optional) - Click Request Payment button
Repeat this step as many Masternode you have to generate an address and MN key for each manternode. If you double click each request, you can see what are the labels and addresses generated.
- With XSN QT wallet opened, got to
Tools
=>Debug Console
- Input the following command:
masternode genkey
- COPY the generated key (known as MN private key), we will use it in the next step.
Note: A masternode private key will need to be created for each Masternode you run. You should not use the same masternode private key for multiple Masternodes.
- With XSN QT wallet opened, got to
Tools
=>Debug Console
- Input the following command:
masternode outputs
- Make note of the hash (which is your collateral_output) and index
- Make sure XSN QT Wallet is not running (quit the program if it is)
- Create/Modify the
masternode.conf
file in the same directory as yourwallet.dat
(~/.xsncore/
):nano ~/.xsncore/masternode.conf
- Copy the masternode private key and corresponding collateral output transaction that holds the 15000 XSN
- Enter your Masternode details (Replace each on with your values accordingly):
{alias/label} {vps_ipaddress}:{port} {masternode_private_key} {collateral_output} {collateral_output_index}
Example:
mn01 127.0.0.1:62583 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
mn02 127.0.0.2:62583 93WaAb3htPJEV8E9aQcN23Jt97bPex7YvWfgMDTUdWJvzmrMqey aa9f1034d973377a5e733272c3d0eced1de22555ad45d6b24abadff8087948d4 0
Note: The masternode private key is not the same as a wallet private key. Never put your wallet private key in the masternode.conf file. That is almost equivalent to putting your 15000 XSN on the remote server and defeats the purpose of a hot/cold setup.
- XSN: Xw1YMUxs4VT7kth1kAEKLHrJ6RCdAbSXeG
- BTC: 17rvNTM6hhpRmeBqk9j5kgcQhgcjxArHZy