Skip to content

Electrum Configure Private Oneserver Mode on macOS

Dan Janosik edited this page Sep 5, 2020 · 1 revision

Prerequisite: Install Electrum for macOS.

Now, to avoid privacy leaks associated with connecting to public Electrum servers, we create an AppleScript Application to launch Electrum.app in single-server "private mode". Launching Electrum via this AppleScript Application will configure it at launch to only connect to your ElectrumX or EPS instance.

  1. Open Apple's "Script Editor"

  2. New Document, type=Application, name=ElectrumPrivate

  3. Paste text (testnet optional):

    # connect via ssl
    do shell script "open -a /Applications/Electrum.app --args --oneserver --server 192.168.1.6:50002:s --testnet"
    

    or

    # connect via tcp
    do shell script "open -a /Applications/Electrum.app --args --oneserver --server 192.168.1.6:50001:t --testnet"
    

    Note: Connecting via SSL to an ElectrumX server using a self-signed certificate, from Electrum running on macOS, isn't working for me - the issue may be related to python3's handling of self-signed certs?. Regardless, since my ElectrumX server is on my home network, I just connect via TCP.

  4. Save

  5. From now on, launch "ElectrumPrivate" app instead of "Electrum"

PS. To see debug output for Electrum on macOS:

cd /Applications/Electrum.app/Contents/MacOS/
./Electrum --oneserver --server 192.168.1.6:50002:s -v=debug