sudo apt-get update && sudo apt-get upgrade -y
sudo apt install curl build-essential pkg-config libssl-dev git wget jq make gcc chrony -y
wget https://github.com/fractal-bitcoin/fractald-release/releases/download/v0.1.8/fractald-0.1.8-x86_64-linux-gnu.tar.gz
tar -zxvf fractald-0.1.8-x86_64-linux-gnu.tar.gz
cd fractald-0.1.8-x86_64-linux-gnu
Copying the Configuration File :
sudo tee /etc/systemd/system/fractald.service > /dev/null <<EOF
[Unit]
Description=Fractal Bitcoin Node
After=network.target
[Service]
User=root
WorkingDirectory=/root/fractald-0.1.8-x86_64-linux-gnu
ExecStart=/root/fractald-0.1.8-x86_64-linux-gnu/bin/bitcoind -datadir=/root/fractald-0.1.8-x86_64-linux-gnu/data/ -maxtipage=504576000
Restart=always
RestartSec=3
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable fractald
sudo systemctl start fractald
sudo journalctl -u fractald -fo cat
cd /root/fractald-0.1.8-x86_64-linux-gnu/bin
./bitcoin-wallet -wallet=wallet -legacy create
Getting Wallet Private Key :
cd /root/fractald-0.1.8-x86_64-linux-gnu/bin
./bitcoin-wallet -wallet=/root/.bitcoin/wallets/wallet/wallet.dat -dumpfile=/root/.bitcoin/wallets/wallet/MyPK.dat dump
cd && awk -F 'checksum,' '/checksum/ {print "CΓΌzdan Private Keyiniz:" $2}' .bitcoin/wallets/wallet/MyPK.dat
Wait for a while and then the logs will appear. It will then show you your private key.
Select "Legacy" as the wallet type.
./bitcoin-wallet -wallet=wallet info