Skip to content

Send the Collateral

Carlos Melo edited this page Jul 27, 2018 · 11 revisions

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).

1. Open a Terminal, and create XSN core dir on you home folder:

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.

3. Extract the compressed archive you just downloaded above:

tar xfvz xsn-1.0.13-linux64.tar.gz

4. Open the XSN QT Wallet:

./xsn-1.0.13/bin/xsn-qt

5. WAIT for the wallet to Sync with the network ( IT IS IMPORTANT THAT IT IS NOT OUT OF SYNC !!! )

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.

7. Send 15,000 XSN to the generated address (remember 15,000 XSN for each masternode).

8. Create Masternode Private Keys.

  • 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.

9. Get the collateral output

  • 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

10. Create/Modify masternode.conf file.

  • 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 your wallet.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.