Since it creates its own index, is there a reason why I should “carry” the entire blockchain?
It builds the index from the bitcoind blockchain, hence why you need it.
I don't think you can use systemd with WSL... you can however use it with WSL
2:
https://gist.github.com/djfdyuruiry/6720faa3f9fc59bfdf6284ee1f41f950note that systemd is not entirely necessary to use ElectrumX... it's just a method for setting it up as a background service and autostart etc. You should be able to just "run" ElectrumX assuming you have the config etc setup correctly.
You can't use systemd on wsl, it's not given access to base hardware functions like that. I love using WSL, it's definitely the most convenient way I've found to SSH into another machine, VPS, and I even use it access my VirtualBox instances on the same host.
@BlackHatCoiner, you can install Ubuntu server onto VirtualBox, start the instance in "headless" mode, and access it with WSL. The advantage is that you can copy and paste commands right from your windows desktop without installing all the VirtualBox additions. I'll be a relatively light install without any bloat, and should work for your needs.
Also note worthy; ElectrumX requires bitcoin core to run unpruned, so you will have to download the entire blockchain.
In case anyone cares, here's how to set up a VirtualBox so you can ssh into it using WSL:
Obviously your VM needs to have SSH server installed, but you don't need to generate a key pair.
On your VM:
sudo apt install openssh-server
On your host, go to your vbox settings, click on network, on the "Adapter 1" tab click on Advanced to expand the field, and then click on the "Port Forwarding" button:
Create a rule as shown below. The host port isn't critical but choose something you're certain isn't being used by another service.
Now you'll be able to start your vbox in headless mode, open a WSL window, and connect using this command:
ssh -p 2200 <vboxusername>@localhost