Fractal Bitcoin Node
Running
You can run fractal bitcoin node in many ways, here are some examples:
Docker
- make sure you have docker installed, see official document for more details.
- create a service directory
mkdir -p /opt/fractaldcd /opt/fractald
- create a docker-compose.yml file
services: fractald: image: fractalbitcoin/fractal:v0.2.1 entrypoint: ["bitcoind", "-datadir=/data/"] healthcheck: test: ["CMD", "bitcoin-cli", "-datadir=/data/", "getblockchaininfo"] volumes: - ./data:/data
- start the service and check the status
docker compose up -ddocker compose psdocker compose logs -f fractald
Systemd
- download the release binary from here
wget https://github.com/fractal-bitcoin/fractald-release/releases/download/v0.2.1/fractald-0.2.1-x86_64-linux-gnu.tar.gztar zxvf fractald-0.2.1-x86_64-linux-gnu.tar.gzmv fractald-0.2.1-x86_64-linux-gnu /opt/fractald
- create data directory and config file
cd /opt/fractaldmkdir datacp ./bitcoin.conf ./data/bitcoin.conf
- edit the config file
txindex=1rpcbind=0.0.0.0rpcallowip=192.168.1.0/24rpcport=8332rpcuser=fractalrpcpassword=<choose a strong password>
- create a systemd service
vim /etc/systemd/system/fractald.service
[Unit]Description=Fractald DaemonAfter=network.target
[Service]User=rootGroup=root
WorkingDirectory=/opt/fractald
# start commandExecStart=/opt/fractald/bin/bitcoind --datadir=/opt/fractald/data/
# stop command (optional)ExecStop=/opt/fractald/bin/bitcoin-cli stop
Restart=alwaysRestartSec=10
# resource limit (optional, adjust according to needs)LimitNOFILE=4096
[Install]WantedBy=multi-user.target
- start and enable the service
systemctl daemon-reloadsystemctl start fractaldsystemctl enable fractald
- check the status and logs
systemctl status fractaldjournalctl -u fractald -f