Contabo : https://bit.ly/contabourl
PQ : https://pq.hosting/?from=627713
Hetzner : https://hetzner.cloud/?ref=ASjlHtRt2swV
Digital Ocean : https://digitalocean.pxf.io/q465nn
Stable internet connection
Install Update / Packages :
sudo apt update -y && sudo apt upgrade -y
sudo apt install jq -y
sudo apt install ca-certificates zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev curl git wget make jq build-essential pkg-config lsb-release libssl-dev libreadline-dev libffi-dev gcc screen unzip lz4 -y
Install Docker :
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl enable docker
Verify Docker Installation :
sudo systemctl status docker
CTRL + C
Download Files :
mkdir -p /root/project/run_btc_testnet4/data
git clone https://github.com/rainbowprotocol-xyz/btc_testnet4
cd btc_testnet4
Docker - Compose :
VER=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -L "https://github.com/docker/compose/releases/download/"$VER"/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
Docker Permission to User
sudo usermod -aG docker $USER
Build Container
Create a new wallet
docker exec -it bitcoind /bin/bash
Change walletname :
bitcoin-cli -testnet4 -rpcuser=demo -rpcpassword=demo -rpcport=5000 createwallet walletname
Your Wallet Adress :
bitcoin-cli -testnet4 -rpcuser=demo -rpcpassword=demo -rpcport=5000 getnewaddress
TYPE exit AND CONTINE
Clone Repo And Binary
cd
git clone https://github.com/rainbowprotocol-xyz/rbo_indexer_testnet && cd rbo_indexer_testnet
wget https://github.com/rainbowprotocol-xyz/rbo_indexer_testnet/releases/download/v0.0.1-alpha/rbo_worker
chmod +x rbo_worker
Configure Compose.yml :
nano docker-compose.yml
Paste This Code β¬οΈ And CTRL X - CTRL Y - Enter. Saved
Link : https://github.com/RPCdotcom/NodeFiles/blob/main/rainbow.yml
Build Container :
If yo See Error Message - Delete Container And Build
Copy bitcoind container id
docker stop <paste your container id>
docker rm <paste your container id>
Connect Bitcoin Core and Run indexer
Crate Screen :
Run Indexer :
./rbo_worker worker --rpc http://127.0.0.1:5000 --password demo --username demo --start_height 42000
LFG ! Competed. CTRL A + CTRL D exit the screen.
Run the indexer daily
Get your Principal ID
nano ./identity/principal.json
Locate your private key and save :
nano ./identity/private_key.pem
For exit : CTRL + X