- CPU: Multi-core processor
- Memory: 4 GB RAM minimum
- Storage: 50 GB free disk space (or more depending)
- Network: Stable internet connection
- Ubuntu 22.04
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
mkdir -p /root/project/run_btc_testnet4/data
git clone https://github.com/rainbowprotocol-xyz/btc_testnet4
cd btc_testnet4
# DOCKER-COMPOSE indirelim
sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# version kontrolünü yapalım
docker-compose --version
Konteyner bağlayalım, yeni bir cüzdan ve yeni bir adres oluşturalım ve yedekleyelim. Kodlar tek tek girilsin.
sed -i "s/-rpcuser=demo/-rpcuser=isim-belirle/g" docker-compose.yml
sed -i "s/-rpcpassword=demo/-rpcpassword=Sifre-belirle/g" docker-compose.yml
docker-compose up -d
docker exec -it bitcoind /bin/bash
bitcoin-cli -testnet4 -rpcuser=belirledigin-isim -rpcpassword=belirledigin-sifre -rpcport=5000 createwallet walletname
### Cüzdan adresimizi kontrol edelim
bitcoin-cli -testnet4 -rpcuser=belirledigin-isim -rpcpassword=belirledigin-sifre -rpcport=5000 getnewaddress
exit
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
nano docker-compose.yml
AŞAĞIDAKİLERİ NANO DOSYASININ İÇİNE KOPYALAYIP YAPIŞTIRIN DÜZENLEYİN VE CTRL+X+Y SONRA KAYDETMEK İÇİN 'ENTER' Tuşuna basın
version: '3'
services:
bitcoind:
image: mocacinno/btc_testnet4:bci_node
privileged: true
container_name: bitcoind
volumes:
- /root/project/run_btc_testnet4/data:/root/.bitcoin/
command: ["bitcoind", "-testnet4", "-server","-txindex", "-rpcuser=belirledigin-isim", "-rpcpassword=belirledigin-sifre", "-rpcallowip=0.0.0.0/0", "-rpcbind=0.0.0.0:5000"]
ports:
- "8333:8333"
- "48332:48332"
- "5000:5000"
docker-compose up -d
docker stop <paste your container id>
docker rm <paste your container id>
docker-compose up -d
screen -S Rainbow
cd rbo_indexer_testnet
./rbo_worker worker --rpc http://127.0.0.1:5000 --username belirledigin-isim --password belirledigin-sifre --start_height 42000
Loglar akmaya başladıktan sonra CTRL A + D yapıp screenden çıkalım. Tekrar girmek için screen -r rainbow
cat root/rbo_indexer_testnet/identity/principal.json
cat root/rbo_indexer_testnet/identity/private_key.pem
EXPLORER sitesine girin ve Principal İD nizi buraya yazıp Submit ediniz.
rm -rf project btc_testnet4 rbo_indexer_testnet
Eğer rbo dosyası içerisinde yapacaksan cd rbo_indexer_testnet atla ve yap. Öncesinde ctrl+c ile nodu durdur ve aşağıdaki komutları izle.
cd rbo_indexer_testnet
wget https://storage.googleapis.com/rbo/rbo_worker/rbo_worker-linux-amd64-0.0.2-20240914-4ec80a8.tar.gz && tar -xzvf rbo_worker-linux-amd64-0.0.2-20240914-4ec80a8.tar.gz
cp rbo_worker-linux-amd64-0.0.2-20240914-4ec80a8/rbo_worker rbo_worker
./rbo_worker worker --rpc http://127.0.0.1:5000 --username kullanıcıadın --password şifren --start_height 42000