Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install-ElectrumX.md

Initial installation

Use this repo to install electrumx easily https://github.com/bauerj/electrumx-installer

For Vitae ElectrumX installation follow this repo instead https://github.com/VitaeTeam/electrumx-installer

After install configuration

Now we need to edit the electrumx config file to match our daemon and other specifics

Use nano or other methods to edit the /etc/electrumx.conf file.If the user isnt root use sudo nano /etc/electrumx.conf so that edits can be saved.

The electrumx default config should look something like this:

# default /etc/electrumx.conf for systemd
# REQUIRED

DB_DIRECTORY = /db

# Bitcoin Node RPC Credentials

DAEMON_URL = http://username:password@hostname:port/

# See http://electrumx.readthedocs.io/en/latest/environment.html for

# information about other configuration settings you probably want to consider.


DB_ENGINE=rocksdb

SSL_CERTFILE=/etc/electrumx/server.crt

SSL_KEYFILE=/etc/electrumx/server.key

TCP_PORT=50001

SSL_PORT=50002

# Listen on all interfaces:

HOST=

Now we need to add the following in the config file of electrumx

NET=mainnet
COIN=YourCoinName (For example Vitae)
SERVICES=ssl://:50002

Finally we need to edit the DAEMON_URL to match our daemon,this is the format

DAEMON_URL=http://rpcusernamehere:rpcpasswordhere@localhost:rpcporthere/

NOTE : Make sure the daemon has txindex=1 so that it can index utxos of non wallet txes,if it doesnt,add txindex=1 to the daemon config and reindex before you start electrumx.

Now that we are configured and ready,we will start the electrumx service via systemctl start electrumx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment