- Tor is for securely accessing the node from outside networks. ZeroMQ is for lnd notifications.
sudo pacman -S --needed tor zeromq
sudo pacman -S --needed autoconf automake boost gcc libevent libtool make pkgconf python sqlite
sudo systemctl enable tor --now
sudo usermod -a -G tor elmeri
- Add to
/etc/tor/torrc
# Allow bitcoind to automatically create a service accessible from tor network.
ControlPort 9051
CookieAuthentication 1
CookieAuthFile /var/lib/tor/control_auth_cookie
CookieAuthFileGroupReadable 1
DataDirectoryGroupReadable 1
# Manually create a ElectrumX service accessible from tor netowrk.
HiddenServiceDir /var/lib/tor/electrumx/
HiddenServicePort 50001 127.0.0.1:50001
HiddenServicePort 50002 127.0.0.1:50002
git submodule update --init
cd bitcoin
./autogen.sh
./configure
make
- Source: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
python3.8 -m venv electrumx-venv
cd electrumx/
../electrumx-venv/bin/python -m pip install .
mkdir go
sudo pacman -S go
cd lnd
GOPATH=~/ssd-fullnode/go make install tags="signrpc walletrpc chainrpc invoicesrpc"
- Update
git pull && make clean && make
and run command above
cd loop/cmd
GOPATH=~/ssd-fullnode/go go install ./...
sudo pacman -S nix
cd fedimint
nix develop
./config.py
cat bitcoin-blockchain-datadir/bitcoin.conf
cat bitcoin-blockchain-datadir/electrumx.env
cat bitcoin-blockchain-datadir/nbxplorer.config
cat bitcoin-blockchain-datadir/btcpayserver/Main/settings.config
./bitcoind.sh
./electrumx_start.sh
./electrumx_stop.sh
sudo cp bitcoind.service /etc/systemd/system/
sudo cp electrumx.service /etc/systemd/system/
sudo systemctl enable bitcoind --now && journalctl -u bitcoind.service -f
sudo systemctl enable electrumx --now && journalctl -u electrumx.service -f
electrum --oneserver --server 127.0.0.1:50001:t
- Get tor hostname:
sudo ./electrumx-onion-host.py
- Install tor
- Linux:
sudo pacman -S tor
- Android download Orbot and add electrum to its services
- Linux:
- Electrum -> Network -> Proxy: localhost:9050
electrum --oneserver --server <tor-host-name>:50002:s
yay -S btcpayserver nbxplorer
sudo cp nbxplorer.service /etc/systemd/system/
sudo cp btcpayserver.service /etc/systemd/system/
sudo systemctl enable nbxplorer --now && journalctl -u nbxplorer.service -f
sudo systemctl enable btcpayserver --now && journalctl -u btcpayserver.service -f