Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

electrs and Fulcrum

The examples assume the secure-node.nix preset; 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

Desktop requirements

  • Tor, listening on its default SOCKS port 9050
  • Electrum

Connect your wallet

  1. Enable electrs in your configuration:

    services.electrs.enable = true;
    

    For Fulcrum, set services.fulcrum.enable = true and use .fulcrum instead of .electrs below.

  2. Deploy your configuration.

  3. Get the electrs onion address, in the format <onion-address>:<port>:

    nodeinfo | jq -r .electrs.onion_address
    
  4. 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:9050
    

    On Android, open the network settings and set:

    • Proxy: SOCKS5, host 127.0.0.1, port 9050
    • Auto-connect: off, one-server mode: on
    • Server: <electrs onion address>:t