Hello everyone,
In this tutorial, I will show you guys how to create an altcoin RPC server in Ubuntu. This will be a rookie-friendly guide, so I will try to detail as much as I can. Let's begin with the first step.
Step 1: Setting up a server
First, we are going to need a VPS. There are many good server providers online (Vultr, DigitalOcean, OVH etc.) Apart from their pricing, they all provide the same service, so pick accordingly to your budget. I will be using Digital Ocean in this tutorial.
We need to create a Droplet, to do that; simply, click on the green 'Create' button on the top right corner and select 'Droplets'
Distributions: I will be using Ubuntu 16.04.3 x64, which is the latest version at the moment. But any other versions of Ubuntu should be working fine as well.
Droplet Size: RPC server should be working fine with 512 MB ram but I recommend at least 1 GB just in case you would like to set up a web server or something else. So, I will choose the 10$ size, which has 1GB RAM and 30 GB SSD.
Name your droplet if you like, then press 'Create' Congratulations! You've created your first Droplet. SSH username and password will be sent as an email.
Now, you will need a software to connect to your SSH server. I am using MobaXterm.
(You can get it here: https://mobaxterm.mobatek.net)
Login your SSH session using your credentials. It will be asking you to create a new password.
Don't forget to update your packages with the "apt update" command.
Step 2: Downloading the Linux Wallet of the altcoin
In this tutorial, I will be using Minexcoin Linux Wallet, but any compiled Linux Wallet is pretty much the same. So, fear not!
If your altcoin does not have a compiled Linux Wallet, you will have to compile it yourself. This tutorial will not cover that.
In terminal, follow these steps:
wget http://minexcoin.com/bin/linux/minexcoin-linux.zip
You need to install "unzip" to extract the zip file:
apt install unzip
Then, unzip the folder:
unzip minexcoin-linux.zip
As you can see, we now have a new folder named minexcoin-linux and four different files. We need to chmod these files:
chmod 777 -R /root/minexcoin-linux/
Then, go to minexcoin-linux directory in terminal
cd minexcoin-linux
We have everything set up and ready, now we will start the daemon with the following command
./minexcoind -daemon
If everything is working properly, you will see this:
Now you should wait for daemon to sync all the blocks. You can check that with the following command:
./minexcoin-cli getinfo
You can check the latest block number by using an explorer. In this case, I will be using the Minexcoin Explorer: https://minexexplorer.com/
Step 3: Creating a configure file
Now, we will create a configure file. Go to your /root/ directory and open .Minexcoin folder
Create a new file named Minexcoin.conf, and remember, it is case-sensitive! Right click the file you've created and open with your text editor. You need to add these commands in order to make it work
server=1
daemon=1
listen=1
rpcuser=YOURRPCUSERNAME
rpcpassword=YOURRPCPORT
rpcport=8332
You should change the username, password and port. And if you want to restrict the daemon to a specific ip address, simply, put the following command to the bottom of your configure file
rpcallowip=IPADDRESS
Now, save the file and upload it to your server. You need to restart the daemon to appy changes. While in "minexcoin-linux" directory, type the following code in terminal to stop the daemon
./minexcoin-cli stop
And now, start the daemon with the following code
./minexcoind -daemon
This is it guys! You've set up your first "altcoin" daemon server. I used Minexcoin in my example, but you can use whatever coin you want.
If you have any questions/problems, do not hesitate to type in the comments or drop me a PM!
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @senketsu I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit