Skip to content

ElectrumX Server Setup

Chris Sulmone edited this page Feb 23, 2018 · 6 revisions

We have forked ElectrumX in order to make changes that specifically support Zclassic and later shielded transactions.

In order to run the server, you need RPC access to a Zclassic full node on the same machine.

You should set up a custom domain with an SSL cert for each server.

Setup

  1. Acquire a linux machine
  2. Download a conf file here and put it here ~/.zclassic/zclassic.conf (create the .zclassic folder if not present)
  3. Open the zclassic.conf file and replace rpcuser value with zcl and rpcpassword value with a secure randomly generated value
  4. After the rpcport line add 'txindex=1' as a new line
  5. Clone Zclassic from github
  6. Build Zclassic from instructions
  7. Run 'nohup ./src/zcashd -daemon'
  8. Download electrumx-zcl
  9. Create a dir at ~/zcl_electrum_db
  10. Change directory to electrumx
  11. Install electrumx dependencies
  12. Increase file descriptor limit [here)(https://underyx.me/2015/05/18/raising-the-maximum-number-of-file-descriptors)
  13. Run electrumx COIN=Zclassic DB_DIRECTORY=/home/<user>/zcl_electrum_db DAEMON_URL=http://<zcl rpc user>:<rpc password in zclassic.conf file>@127.0.0.1:8232 HOST=0.0.0.0 SSL_PORT=50002 PEER_DISCOVERY=Off SSL_CERTFILE=<path to>/fullchain.pem SSL_KEYFILE=<path to>/privkey.pem BANDWIDTH_LIMIT=10000000 DONATION_ADDRESS=t1gsePJZ6ojJYygj3PWMGJfojPUoMd5AVfU MAX_SESSIONS=5000 nohup ./electrumx_server.py &
Clone this wiki locally