2024-02-16 18:03:19 -05:00
|
|
|
# sys-electrumx
|
|
|
|
|
|
|
|
ElectrumX in Qubes OS.
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [Description](#description)
|
|
|
|
* [Installation](#installation)
|
|
|
|
* [Usage](#usage)
|
|
|
|
* [Credits](#credits)
|
2024-02-16 18:03:19 -05:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Setup an offline Electrumx (Electrum Server) qube named "sys-electrumx",
|
|
|
|
connected to your own full node running on "sys-bitcoin" to index the
|
|
|
|
blockchain to allow for efficient query of the history of arbitrary addresses.
|
|
|
|
|
|
|
|
A disposable qube "disp-electrumx-builder" will be created, based on
|
|
|
|
Whonix-Workstation, it will server to install and verify ElectrumX. After the
|
|
|
|
verification succeeds, files are copied to the template "tpl-sys-electrumx".
|
|
|
|
This method was chosen so the server can be always offline.
|
|
|
|
|
|
|
|
At least `200GB` of disk space is required.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
This formula depends on [sys-bitcoin](../sys-bitcoin/README.md).
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* Top:
|
|
|
|
|
2024-02-16 18:03:19 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl top.enable sys-electrumx
|
|
|
|
sudo qubesctl --targets=tpl-electrumx-builder,tpl-sys-electrumx,disp-electrumx-builder,sys-electrumx state.apply
|
|
|
|
sudo qubesctl top.disable sys-electrumx
|
2024-06-04 07:54:48 -04:00
|
|
|
sudo qubesctl state.apply sys-electrumx.appmenus
|
2024-02-16 18:03:19 -05:00
|
|
|
```
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* State:
|
|
|
|
|
2024-02-16 18:03:19 -05:00
|
|
|
<!-- pkg:begin:post-install -->
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2024-02-16 18:03:19 -05:00
|
|
|
```sh
|
2024-02-23 10:54:35 -05:00
|
|
|
sudo qubesctl state.apply sys-electrumx.create
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-electrumx-builder state.apply sys-electrumx.install-builder
|
|
|
|
sudo qubesctl --skip-dom0 --targets=tpl-sys-electrumx state.apply sys-electrumx.install
|
|
|
|
sudo qubesctl --skip-dom0 --targets=disp-electrumx-builder state.apply sys-electrumx.configure-builder
|
|
|
|
sudo qubesctl --skip-dom0 --targets=sys-electrumx state.apply sys-electrumx.configure
|
2024-06-04 07:54:48 -04:00
|
|
|
sudo qubesctl state.apply sys-electrumx.appmenus
|
2024-02-16 18:03:19 -05:00
|
|
|
```
|
2024-07-04 11:10:11 -04:00
|
|
|
|
2024-02-16 18:03:19 -05:00
|
|
|
<!-- pkg:end:post-install -->
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
You may customize ElectrumX by writing to the file
|
|
|
|
`~/.electrumx/conf.d/electrumx.conf.local`.
|
|
|
|
|
|
|
|
If you are not using [sys-bitcoin](../sys-bitcoin/README.md), you will need to
|
|
|
|
add the RPC Authentication cookie to the qube `sys-electrumx` in the file
|
|
|
|
`~/.bitcoin/.cookie`. Make sure there is no new line at the end of the cookie
|
|
|
|
file, else ElectrumX will fail to start.
|
|
|
|
|
|
|
|
You may want to use the command `electrumx-cli` to send commands to the
|
|
|
|
ElectrumX server.
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
2024-07-04 11:10:11 -04:00
|
|
|
* [qubenix](https://github.com/qubenix/qubes-whonix-bitcoin)
|