KEEP NETWORK — RANDOM BEACON (RB OR KEEP-CLIENT) NODE SETUP

Crypto Enthu
2 min readJul 10, 2020

This helps step by step process to setup Random Beacon (Keep-Client) Node in Server.

Pre-Requisites :

  1. ) Should have completed delegation of KEEP tokens, Authorize RB, tBTC and added ETH. Refer doc (till Step 8) :
https://medium.com/@ben_longstaff/a-beginners-quick-start-guide-to-staking-on-the-keep-network-testnet-using-digitalocean-5a74ca60adc3

2.) Should have Ubuntu Server ready.

3.) Keep handy the following

 a.) ETH Address 
b.) Infura Project ID
c.) Server IP Address
d.) Your ETH Wallet Passwd

SETTING UP NODE:

STEP 1:
a.) Ensure to be in Home directory.
Command :-

cd $HOME

b.) Copy the scripts repository to your home directory.
Command :-

git clone https://github.com/cryptoenthu1/keep-rb-repo.git

STEP 2:
a.) Change permissions of scripts Directory.
Command :-

chmod -R 755 $HOME/keep-rb-repo

b.) Execute the script to intake YOUR SERVER IP, INFURA PROJECT ID, ETH ADDRESS, ETH WALLET PASSWORD, Install Docker, Create necessary directories create config.toml file with the required variables.
Command:-

$HOME/keep-rb-repo/RBNode.sh

After execution of the above command (script) first screen shows as follows. Enter Your server IP and press enter. System keeps ask the next inputs.

After entering all inputs, script start executes which takes 5 to 10 mins. Please wait till completion of the script execution.

c.) Copy the contents of the Ethereum wallet keystore file into a new file on your server.

vim $HOME/keep-client/keystore/keep_wallet.json

STEP 3:
a.) Sometimes env variables does not reflect though stored in bash profile. Hence execute source command before starting RB Node (before executing 3.b).
Command :-

source ~/.bash_profile

b.) Execute following command to start Docker image for RB Node.
Command (Note : below is a single command .. Copy the complete content from sudo … till .. start and paste at server terminal and hit enter) :-

sudo docker run -dit \
--restart always \
--volume $HOME/keep-client:/mnt \
--env KEEP_ETHEREUM_PASSWORD=$KEEP_CLIENT_ETHEREUM_PASSWORD \
--env LOG_LEVEL=info \
--name keep-client \
-p 3919:3919 \
keepnetwork/keep-client:v1.3.0-rc.4 --config /mnt/config/config.toml start

STEP 4:
Verification of Node running.

sudo docker ps -asudo docker logs keep-clientsudo docker logs --tail 1000 keep-client -f|grep 'number of connected peers:'

--

--