Guidance: How to Run a Keeper Node?

Step 1: Preparations

1.Get the key pair of a Bitcoin address

  • Save the key pair to a cloud file or notepad for later use.

2.Get the private key of a Ethereum address

  • Open the Metamask Wallet, and click 【Account Details】.

3.Create Infura project

  • Visit https://infura.io/register, and register your Infura account.
  • Save the Project ID to a cloud file or notepad for later use.

4.Purchase a server

  • Choose a cloud service provider(ubuntu or centos), and buy a server with 1CPU core and 2GB RAM.

Step 2: Add Keeper

1.Claim test WBTC

*The wallet need to switch to Ropsten Test Network.

2.Approve WBTC

  • Enter the following information, and click【Write】.

-Spender:0x50d0D76a88707094328D9F8B765Df85148b4AcD8

-Amount:10000

  • Once the transaction is confirmed, you can go on with the next step.

3.Add Keeper

-Asset:0xAe03aa2853BFD2cbA4103810A0a4ed08AC6069F5

-Amount:10000

  • Once the transaction is confirmed, you can go on with the next step.

Step 3: Create SSH Key

1.Create SSH

  • Open the command line

-For Mac: Open Terminal (Launchpad — Other — Terminal)
-For Windows: Start > Search > Type cmd > Select Command Line Terminal

  • Type the following command lines in order, and click【Enter】for each command line. You can directly do a copy and paste.

-Type 「ssh-keygen -t ed25519」, and click Enter

-Set the password, the command line will not display when entering the password.

-Enter the password again to confirm, and save the password somewhere.

-Type 「ls -a」, and click Enter.

-Type 「cd .ssh」, and click Enter.

-Type 「ls」, and click Enter.

-Type 「vi id_ed25519.pub,click Enter to display the generated SSH Public Key.

-Copy the whole SSH Key and save it to Cloud or Notepad for later use.

-Type 「:q」(it will be displayed at the lower left of the terminal) to exit the current SSH Public Key interface.

  • The SSH Key is successfully created when the following command lines are shown on the Terminal.

2.Use SSH Key and password to connect to the server

  • Enter the following command line.
    ssh root@’Your IP Address’ without quotation marks, e.g. ssh root@47.242.192.221

Step 4: Deploy the Node

1.Initialization setting

  • Type 「vi . /pwd」, and click Enter.

2.Install the firewall

  • If the cloud server is an Ubuntu system, type the following command lines.(You can directly do a copy and paste.)

sudo ufw allow 22/tcp
sudo ufw allow 22/tcp
sudo ufw allow 3919/tcp
yes | sudo ufw enable

  • If the cloud server is a Centos system, type the following command lines.(You can directly do a copy and paste.)

sudo yum install firewalld
sudo yum install firewalld
sudo systemctl enable firewalld
firewall-cmd — state
sudo firewall-cmd — permanent — add-port=22/tcp
sudo firewall-cmd — permanent — add-port=3919/tcp
sudo systemctl restart firewalld

3. Install Docker and check the version

  • Type the following command lines.

sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io curl -y
sudo systemctl start docker
sudo systemctl enable docker

  • Type 「sudo docker — version」, and click Enter. Docker is successfully installed when “Docker Version XX.XX.X” is shown on the Terminal.

4. Deploy the node

  • Type the following command lines, and click Enter.

docker run -it -e PASSWORD=$(cat ./pwd) -v keeper-user:/app/user lolv/keeper-client init

  • Input the Infura project ID, the private key of ETH address and BTC address.
  • Type the following command lines, and click Enter.

docker run -d — restart always -e PASSWORD=$(cat ./pwd) -v keeper-user:/app/user — name keeper-client lolv/keeper-client

  • Type 「docker ps」, and click Enter. If the node runs successfully, the keeper-client will show on the Terminal.

Follow DeCus

Website || Twitter || Telegram || Github

DeCus is a cross-chain custody system dedicated to bringing Bitcoin to the DeFi ecosystem.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store