How to host a Bitcoin Cash node on a linux vps

This article is a step by step guide on hosting your own bitcoin cash node on a linux based vps (virtual private server). For our example we are using Ubuntu 18.04

How to host a bitcoin cash node on linux

Step 1.) Add Bitcoin Repository

Login to your linux VPS server via SSH and add the bitcoin package repository by running the following command and accept any prompts asking you to continue adding this repository. This is required to install Bitcoin Core.

 

sudo add-apt-repository ppa:bitcoin/bitcoin

Step 2.) Install dependencies

Next, run the following commands to install the required dependencies for our bitcoin cash node. You can edit this if you have some of these installed already.

sudo apt-get update
sudo apt-get install git
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libboost-all-dev libzmq3-dev libminiupnpc-dev
sudo apt-get install curl git build-essential libtool autotools-dev
sudo apt-get install automake pkg-config bsdmainutils python3
sudo apt-get install software-properties-common libssl-dev libevent-dev

Step 3.) Download & Install Bitcoin Cash Package

After the required dependencies are installed we are going to download the Bitcoin Cash pkg, so enter a temporary file of your choice, such as /tmp and run the following command

git clone https://github.com/Bitcoin-ABC/bitcoin-abc

 

That will download the bitcoin cash repository to your linux vps, next we will need to compile it so run the following command

cd /bitcoin-abc
./autogen.sh
./configure
make
make install

 

If all went well we will create a configuration file to contain our user credentials. Create the directory with the following command

mkdir ~/.bitcoin

 

And add a configuration file to this directory named "bitcoin.conf" containing the following, don't forget to edit rpcuser and rpcpassword with your desired credentials.

rpcuser=virtualcoin2018
rpcpassword=kamisama123

Step 4.) Start Bitcoin Cash Node

The last step is to start the bitcoin cash service (daemon), do so by running the following

bitcoind -daemon

 

Since this is the first time you are running the daemon it may take a while to synchronize the blockchain, depending on the performance of your vps server. You can get information on the current status by running the two commands below

bitcoin-cli getinfo
bitcoin-cli getblockchaininfo

And that's it! You have successfully set up your first bitcoin cash node on a linux vps server. If you want to read more about the bitcoin-cli commands, check out the wiki, https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

 

  • how to bitcoin cash node, linux
  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

How to easily host a bitcoin node on a linux VPS

This article is a step by step guide on hosting your own bitcoin node on a vps (virtual private...