/lbe-css

Light Block Explorer - simple CSS-based block explorer for Zcash & forks

Primary LanguagePython

Light Block Explorer (CSS Enhanced)

Equihash/Zcash based coins

Abstract

Basic CSS enhanced block explorer for Zcash and equihash forks (Zclassic, Zdash, Komodo ...)

Xcoind requirements

LBE requires these rpc calls:

  • getbestblockhash
  • getblock
  • getrawtransaction
  • decoderawtransaction

Install

git clone http://github.com/hellcatz/lbe
cd lbe
virtualenv .env
source .env/bin/activate
pip install -r requirements.txt

Usage

Show help

python lbe.py -h

Example Zcash Testnet Run Script

/home/user/lbe/start.sh

#!/bin/bash
source .env/bin/activate
python lbe.py :: 8000 localhost 18232 username password --equihash=1 --coin TAZ --n-last-blocks 100

Example Systemd Unit Script

This requires the Xcoind daemon to be setup as a service and running properly.

/etc/systemd/system/lbe-block-explorer.service

[Unit]
Wants=network-online.target
After=network.target network-online.target
Description=LBE Block Explorer Service

[Service]
Environment=HOME=/home/user
Environment=PWD=/home/user/lbe
Environment=PATH=/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Environment=USER=user
User=user
Group=user
WorkingDirectory=/home/user/lbe
ExecStart=/home/user/lbe/start.sh
Restart=always

[Install]
WantedBy=multi-user.target

sudo systemctl start lbe-block-explorer.service