Skip to content
Branch: master
Find file History
Latest commit 0c055b9 Aug 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets add service files Mar 30, 2019
config.scripts take apart systemd installation and refresh links and readme Apr 19, 2019 take apart systemd installation and refresh links and readme Apr 19, 2019 fix certbot.service description Jul 11, 2019 bump electrum to 3.3.8 Aug 5, 2019 fix format , add Jul 24, 2019

RaspiBlitz: install the Electrum Server in Rust (electrs)

Based on
Shared experiences here: and

`The server indexes the entire Bitcoin blockchain, and the resulting index enables fast queries for any given user wallet, allowing the user to keep real-time track of his balances and his transaction history using the Electrum wallet. Since it runs on the user's own machine, there is no need for the wallet to communicate with external Electrum servers, thus preserving the privacy of the user's addresses and balances.` - https:/

Tested on the

  • Odroid HC1 and XU4 (~18 hours)
  • Raspberry Pi 3 B+ (~ two days to build the database from scratch)

Requires 47 Gb diskpace (March 2019).

The install instructions are adapted to the RaspiBlitz are in this script, take a look:

The script is a collection of commands. The whole setup has multiple components and dependencies which can change when updated or modified by the maintainers. If you run into problems try to run the commands manually one-by-one, spot which is causing the problem and copy the output. Open an issue here with the details and I will be happy to help to solve it. Bear in mind that this guide and the parts used are free-opensource projects, you use them at your own responsibility and there are no guarantees of any kind.

To download and run on the RaspiBlitz::
$ wget && bash

This will only run the server until the terminal window is open.
To restart electrs manually run (with your PASSWORD_B filled in) or install the Electrs systemd service (next step):
$ /home/admin/electrs/target/release/electrs --index-batch-size=10 --jsonrpc-import --db-dir /mnt/hdd/electrs/db --electrum-rpc-addr="" --cookie="raspibolt:PASSWORD_B" -vvvv

To connect your Electrum wallet use these commands and ports:

For an unencrypted TCP connection (suitable inside a secure LAN):
electrum --oneserver --server RASPIBLITZ_IP:50001:t

To connect through SSL (requires setting up the Nginx server):
electrum --oneserver --server YOUR_DOMAIN:50002:s

RaspiBlitz: Set up the Electrs systemd service

Set up the systemd service to run electrs continuously in the background.

Take a look:

To download and run:
$ wget && bash

If running the always-on electrs service is too much for your RPi stop it with:
$ sudo systemctl stop electrs
To stop running on boot:
$ sudo systemctl disable electrs
(To re-enable and start use the enable and startcommands)

A remote connection to Electrs should be encrypted.
See the guide from @cryptomulde to connect to a VPS through a reverse ssh tunnel:

The more secure option is to continue with setting up the SSL connection as described in the next section.

RaspiBlitz: install Nginx and Certbot to connect over SSL

For the SSL certificate to be obtained successfully a dynamic DNS and port forwarding is necessary. Forward the port 80 to the IP of your RaspiBlitz for Certbot.
Forward the port 50002 to be able to access electrs from the outside of your LAN (optional).

The script sets up the automatic start Nginx and Certbot.

Assumes that electrs is already installed.

Can be used as a secure backend of:

Eclair Mobile Bitcoin and Ligthtning wallet
Electrum wallet

Take a look:

To download and run on the RaspiBlitz:
$ wget && bash

Linux desktop: install, configure and run the Electrum wallet

The instruction are in the script:

Tested on Ubuntu 18.04.

To download and run on the Linux desktop:
$ wget && bash

You can’t perform that action at this time.