Deploy Htmlcoin ElectrumX Server
screen -t electrumx -S electrumx
sudo ufw allow 50002
sudo ufw enable
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py
sudo apt install python3-pip
python3.8 -m pip install dataclasses
git clone https://github.com/denuoweb/htmlcoin-electrumx-server.git
cd htmlcoin-electrumx-server
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt
mkdir /home/USER/.electrumx/
mkdir /home/USER/.electrumx/db
sudo cp server.crt ~/.electrumx/
sudo cp server.key ~/.electrumx/
python3 -m pip install -r requirements.txt
sudo python3 -m pip install --user -e .
sudo python3 -m pip install .[fast]
sudo python3 setup.py install
sudo nano quick_run.sh
export COIN=Htmlcoin
export ALLOW_ROOT=1
export DAEMON_URL=http://RPCUSERNAME:RPCPASSWORD@localhost:4889
export NET=mainnet
export USERNAME=USERNAME
export REQUEST_TIMEOUT=30
export COST_HARD_LIMIT=1000000
export COST_SOFT_LIMIT=10000
export SSl_PORT=50002
export DB_DIRECTORY=/home/USER/.electrumx/db
export SSL_CERTFILE=/home/USER/.electrumx/server.crt
export SSL_KEYFILE=/home/USER/.electrumx/server.key
export SERVICES=ssl://:50002
ulimit -n 65000
sudo sh quick_run.sh
CTRL-a CTRL-d
electrum daemon -d