electrs and Fulcrum
The examples assume the
secure-node.nixpreset; see Using services.
Electrum wallets can connect to your electrs (or Fulcrum) server through its onion
service, which the secure-node.nix and enable-tor.nix presets create.
Warning
The onion service forwards to the server’s port, by default
127.0.0.1:50001. While the server is down, for example during a restart or an update, any other local user can listen on this port, and a wallet that connects then sends it the wallet’s addresses. With network namespace isolation, the server listens on its namespace’s address, which no other local user can take.
Android requirements
- Orbot from F-Droid or Google Play
- Electrum from the direct download or Google Play
Desktop requirements
Connect your wallet
-
Enable electrs in your configuration:
services.electrs.enable = true;For Fulcrum, set
services.fulcrum.enable = trueand use.fulcruminstead of.electrsbelow. -
Deploy your configuration.
-
Get the electrs onion address, in the format
<onion-address>:<port>:nodeinfo | jq -r .electrs.onion_address -
Connect to electrs
Make sure Tor is running on your desktop or as Orbot on Android.
On your desktop
electrum --oneserver -s "<electrs onion address>:t" -p socks5:127.0.0.1:9050On Android, open the network settings and set:
- Proxy: SOCKS5, host
127.0.0.1, port9050 - Auto-connect: off, one-server mode: on
- Server:
<electrs onion address>:t
- Proxy: SOCKS5, host