Ethereum

The Ethereum module requires access to a parity node. You can install Parity onto a VPS using the following instructions.

Download the latest rpm/dpkg from Parity's website and install it inside the VPS.
Run the following commands (Replace 127.0.0.1 with the IP address of your HTTP server running Billic)
 
useradd -m parity
chmod 0700 /home/parity
echo '[Unit]
Description=Ethereum Server
[Service]
ExecStart=/usr/bin/parity --no-config --no-ancient-blocks --no-serve-light --max-peers 250 --no-warp --mode active --jsonrpc-port 8545 --jsonrpc-interface all --jsonrpc-apis eth,net,personal --no-ws --no-hardware-wallets --no-ui --no-dapps
User=parity

[Install]
WantedBy=multi-user.target' > /etc/systemd/system/parity.service
echo '*filter
:INPUT ACCEPT [12415:5240682]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8403:3412244]
-A INPUT -s 127.0.0.1 -p tcp -m tcp --dport 8545 -j ACCEPT
-A INPUT ! -s 127.0.0.1 -p tcp -m tcp --dport 8545 -j DROP
COMMIT' > /etc/iptables.up.rules
echo '#!/bin/sh
/sbin/iptables-restore < /etc/iptables.up.rules' > /etc/network/if-pre-up.d/iptables
chmod +x /etc/network/if-pre-up.d/iptables
/etc/network/if-pre-up.d/iptables
systemctl daemon-reload 
systemctl enable parity
systemctl start parity
systemctl status parity
!!! WARNING !!!  The startup script includes firewall rules which are intended to deny access to your Parity API to every IP except your server. Make sure these are in place, or you may have your ETH stolen. Make sure you can't access port 8545 from anywhere on the internet. It should also be noted that if you use a shared web server, it is possible for ANY website or user on your server to access your Parity server.




Next: API
Previous: Configuring Payment Gateway Modules
Powered By Billic