Use the following instructions to setup a masternode for BitcoinFlex on Ubuntu Server 18.04.

Make sure that you have the following requirements.
– Required amount of coins to setup the masternode(BCX 10,000).
– A wallet to store your coins.
– A server or VPS.

 

Prepare your VPS

Install Ubuntu Server 18.04 on a VPS.

Update your Ubuntu machine.

sudo apt-get update
sudo apt-get upgrade

Install the required dependencies.

sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common

Install Berkeley DB.

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

Download the daemon and tools:

wget "https://bitcoinflex.org/downloads/bitcoinflex-daemon-linux.tar.gz" -O bitcoinflex-daemon-linux.tar.gz
wget "https://bitcoinflex.org/downloads/bitcoinflex-qt-linux.tar.gz" -O bitcoinflex-qt-linux.tar.gz

Extract the tar files.

tar -xzvf bitcoinflex-daemon-linux.tar.gz
tar -xzvf bitcoinflex-qt-linux.tar.gz

Install the daemon and tools.

sudo mv bitcoinflexd bitcoinflex-cli bitcoinflex-tx /usr/bin/

Create the config file.

mkdir $HOME/.bitcoinflex
nano $HOME/.bitcoinflex/bitcoinflex.conf

Paste the following lines in bitcoinflex.conf.

#----
rpcuser=rpc_bitcoinflex
rpcpassword=kuw05sqio7bcm8z96o7redv17xws1lw6xpd1qf33
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=64
#----
#masternode=1
#masternodeprivkey=
externalip=REPLACE_WITH_EXTERNAL_IP_OF_VPS
#----

Leave the fields “masternode” and “masternodeprivkey” commented out.

Replace the text “REPLACE_WITH_EXTERNAL_IP_OF_VPS” with the external IP address of your VPS.

E.G. externalip=136.144.171.201

Start your node with the following command.

bitcoinflexd

Wait until the daemon has finished downloading the blockchain.

 

Send the collateral

Open your wallet and wait until your wallet has downloaded the blockchain.

Go to “Tools”.
Click “Debug console”.
This is the console where you will execute all commands.

Create a new masternode private key.

createmasternodekey

Example output

7VatfYVk5fFMTymPDhgSURAESDACJhWpd89WHGoh35d9fbLQPj5

Show your collateral address.

getaccountaddress "MN1"

Example output

XDC99hZmSmYEcBu4WcxA2TCT6KBqHB6Hos

Transfer the required amount of coins to the “collateral address” that you created using the command “getaccountaddress “MN1″”.

Wait until the transaction has the required masternode confirmations.

Go to “Tools”.
Click “Debug console”.

Enter the following command.

getmasternodeoutputs

Example output


[
  {
    "txhash": "506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9",
    "outputidx": 1
  }
]

 

Go to “Tools”.
Click “Open Masternode Configuration File”.

Modify the following line and paste it into notepad.

MN1 136.144.171.201:9999 7VatfYVk5fFMTymPDhgSURAESDACJhWpd89WHGoh35d9fbLQPj5 506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9 1

MN1 – Alias for your masternode.

136.144.171.201 – External IP address of your VPS.

9999 – Replace with P2P port of your coin.

7VatfYVk5fFMTymPDhgSURAESDACJhWpd89WHGoh35d9fbLQPj5 – Masternode private key from the command “createmasternodekey”.

506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9 – Value “txhash” from the command “getmasternodeoutputs”.

1 – Value “outputidx” from the command “getmasternodeoutputs”.

 

Save the file and close notepad.

Close your wallet.

 

Register your masternode

Place the masternode private key in the config file of your masternode and uncomment the values “masternode” and “masternodeprivkey”.

Example config

#----
rpcuser=rpc_bitcoinflex
rpcpassword=kuw05sqio7bcm8z96o7redv17xws1lw6xpd1qf33
rpcallowip=127.0.0.1
#----
listen=1
server=1
daemon=1
maxconnections=64
#----
masternode=1
masternodeprivkey=7VatfYVk5fFMTymPDhgSURAESDACJhWpd89WHGoh35d9fbLQPj5
externalip=136.144.171.201
#----

Restart your masternode using the following commands.

bitcoinflex-cli stop
bitcoinflexd

Open your wallet.

Go to “Settings”.
Click “Unlock Wallet”.

Enter your wallet passphrase and unlock your wallet.

Go to “Tools”.
Click “Debug console”.

Start your masternode using the command.

startmasternode alias false MN1

Your masternode is now registered and will appear in the masternode list.

You can check the status of your masternode using the command “getmasternodestatus”.

bitcoinflex-cli getmasternodestatus

Example output


{
  "txhash": "506a242ccbfd2555bcd9cff5f4041752c911f39cb2905acc83ccfe0cf8808df9",
  "outputidx": 1,
  "netaddr": "136.144.171.201:9999",
  "addr": "XDC99hZmSmYEcBu4WcxA2TCT6KBqHB6Hos",
  "status": 4,
  "message": "Masternode successfully started"
}

Bitcoin Flex

Bitcoin Flex was launched on Sat, Apr, 4th 2020

Bitcoin Flex is fully decentralized, maintained by the community.

DONATIONS
All donations will be used to improve the Bitcoin Flex Project.

BTC: 1AhW1HcbDUP8hajkvryvWh4RRQWzswdx2y
ETH: 0xdc1eca727803804a76b75dd649513dd1b46a8295
TRX: TFXZLqH3Mb2eAWuj4Ea7tv1HQEUBLvdreZ
BCX: XE1ZhUPuyzVoKHAavBp7RgYQDFjsbZVMB7

Quick Links

© 2020 BitCoin Flex. All rights reserved.

Disclaimer

Nothing on this website is, or should be relied on as, a promise or representation as to the future. Bitcoin Flex or any party associated makes no representation regarding the likelihood or probability that any actual or proposed account allocation will in fact achieve a particular investment outcome or goal. Please realize that crypto-currencies have no value except what people associate with it. Be a wise in ever investing money value into any digital currency. Prices fluctuate and tokens can be lost easily due to digital mishaps and hacking. We are not liable for any choices users make with Bitcoin Flex BCX. Bitcoin Flex is not a company or business. This is an open source community currency. Disclaimer: Bitcoin Flex BCX is a speculative investment and involves high degrees of risk. Investors must have the financial ability, experience and willingness to bear the risks of an investment. Past performance is not necessarily indicative of future results. Past performance is no guarantee of future returns and there is no guarantee that the market price of coin will fully reflect their under lying net asset value. There is also no guarantee that Bitcoin Flex (BCX) investment objective will be achieved. Potential investors are advised to seek expert financial advice before making any investment decision and should be aware that they may not fully recover the amount invested.