Raspiblitz: Feature request - BTC RPC explorer

Created on 6 Sep 2019  路  6Comments  路  Source: rootzoll/raspiblitz

I think it will be very useful to add BTC rpc explorer, what do you think? Creating a hidden service it allows to connect to your private explorer through tor.

https://github.com/janoside/btc-rpc-explorer

enhancement final testing

Most helpful comment

Just tested this, easy to setup.
Only it will need txindex=1 (indexing took ~7h on a RPi4 4GB + SSD)
Setup steps:

sudo nano /mnt/hdd/bitcoin/bitcoin.conf
change txindex to:

txindex=1

sudo systemctl restart bitcoind

Install:

npm install -g btc-rpc-explorer

export PATH=$PATH:/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/
sudo ufw allow 3002

Run:
btc-rpc-explorer -i 0.0.0.0 -u raspibolt -w <passwordB>

  btcexp:app Starting BTC RPC Explorer, v1.1.2 +0ms
  btcexp:app Connecting to RPC node at 127.0.0.1:8332 +4ms
  btcexp:app Connected via RPC to node. Basic info: version=180100, subversion=/Satoshi:0.18.1/, protocolversion=70015, services=000000000000040d +284ms

Can be viewed in a browser on:
RaspiBlitz_LAN_IP:3002
Screenshot from 2019-10-27 14-25-36

All 6 comments

Sounds like a nice to have but is not on my personal prio list ... if someone builds a /home/admin/config.scripts style prototype script to in- and deinstall such a service I could accept/add it as a PR.

Just tested this, easy to setup.
Only it will need txindex=1 (indexing took ~7h on a RPi4 4GB + SSD)
Setup steps:

sudo nano /mnt/hdd/bitcoin/bitcoin.conf
change txindex to:

txindex=1

sudo systemctl restart bitcoind

Install:

npm install -g btc-rpc-explorer

export PATH=$PATH:/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/
sudo ufw allow 3002

Run:
btc-rpc-explorer -i 0.0.0.0 -u raspibolt -w <passwordB>

  btcexp:app Starting BTC RPC Explorer, v1.1.2 +0ms
  btcexp:app Connecting to RPC node at 127.0.0.1:8332 +4ms
  btcexp:app Connected via RPC to node. Basic info: version=180100, subversion=/Satoshi:0.18.1/, protocolversion=70015, services=000000000000040d +284ms

Can be viewed in a browser on:
RaspiBlitz_LAN_IP:3002
Screenshot from 2019-10-27 14-25-36

To add to the PATH permanently:

sudo bash -c "echo 'PATH=\$PATH:/usr/local/lib/nodejs/node-v10.16.0-linux-armv7l/bin/' >> /etc/profile"

The setup for LND-admin is basicly the same:

npm install -g lnd-admin
lnd-admin
Open http://127.0.0.1:3004/

Made a scripted version: https://github.com/openoms/raspiblitz-extras#btc-rpc-explorer

Help with testing is appreciated.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shawnyeager picture shawnyeager  路  3Comments

ChuckNorrison picture ChuckNorrison  路  4Comments

rootzoll picture rootzoll  路  3Comments

Himbeergeld picture Himbeergeld  路  3Comments

rootzoll picture rootzoll  路  4Comments