The BSQ explorer provides basic information about BSQ transactions. It is based on static html pages which are rendered from json files generated by a Bisq application running on the server. Beside http server and Bisq (we run a seednode instance) we require bitcoind as the Bisq node is running in fullnode mode.
The Nginx configuration requires to set a symlink as root user:
cd /var/www
ln -s /home/user/bisq/bisq-explorer-mainnet/www html
We need to symlink for testnet (https://explorer.bisq.network/testnet/).
cd /home/user/bisq/bisq-explorer-mainnet/www
ln -s /home/user/bisq/bisq-explorer-testnet/www testnet
Inside the testnet and mainnet www
directories we need to set symlinks to the json files generated by the Bisq app:
For testnet:
cd /home/user/bisq/bisq-explorer-testnet/www
ln -s /home/user/.local/share/seed_BTC_TESTNET_o5qw2hy6l7jsf654/btc_testnet/db/json/all all
ln -s /home/user/.local/share/seed_BTC_TESTNET_o5qw2hy6l7jsf654/btc_testnet/db/json/tx tx
ln -s /home/user/.local/share/seed_BTC_TESTNET_o5qw2hy6l7jsf654/btc_testnet/db/json/txo txo
For mainnet:
cd /home/user/bisq/bisq-explorer-mainnet/www
ln -s /home/user/.local/share/bisq-BTC_MAINNET_Seed_jvsf32f75ygnfi7d/btc_mainnet/db/json/all all
ln -s /home/user/.local/share/bisq-BTC_MAINNET_Seed_jvsf32f75ygnfi7d/btc_mainnet/db/json/tx tx
ln -s /home/user/.local/share/bisq-BTC_MAINNET_Seed_jvsf32f75ygnfi7d/btc_mainnet/db/json/txo txo
The phyton script reads out the latest commit hash of the Bisq app. For that we use another symlink:
cd ~/
ln -s /home/user/bisq/bisq github
Run the python script from inside the explorer directories For testnet:
cd /home/user/bisq/bisq-explorer-testnet
python bsq_json.py
For mainnet:
cd /home/user/bisq/bisq-explorer-mainnet
python bsq_json.py