Setup BTC RPC Explorer
Install BTC RPC Explorer on your Bitcoin node.
Last updated
Was this helpful?
Install BTC RPC Explorer on your Bitcoin node.
Last updated
Was this helpful?
BTC RPC Explorer is essentially a web GUI for the Bitcoin JSON-RPC API. It is highly useful for node monitoring, management, and as a blockchain explorer.
Clone the repo:
Show the latest version tags:
Switch to the latest stable version:
Update local dependencies within version ranges specified in package.json:
Install:
If you get an error try updating the following packages to their latest version instead:
Then try installing again:
Create the config file:
Add the following:
BTCEXP_HOST: Replace with your Pi's local IP to make BTC RPC Explorer accessible on your LAN.
BTCEXP_BITCOIND_COOKIE: Update the path with your own user.
BTCEXP_BASIC_AUTH_PASSWORD: Set a strong password to secure access.
Create the service file:
Add the following:
Line 6,8 and 9 make sure to replace your_user by your own user.
Finally, reload systemd:
Configure BTC-RPC Explorer to automatically start at boot:
Start BTC-RPC Explorer:
Access BTC RPC Explorer at http://NODE-IP:3002 from any device on your LAN.
You'll see a popup asking you to enter a username and password. The username doesn't matter; just use the password you set up in the .env
file.
The page /node-details
of BTC RPC Explorer throws an error. I suck at coding but I was able to fix it with ChatGPT.
Edit the below file:
At line 29, replace this block of code:
By this one:
(Basically I removed getblockchaininfo.warnings.trim().length > 0 in both if statements).
This is a dirty DIY way of patching it, but it does the job lol.
Make sure to restart BTC RPC Explorer and the page should be working:
I personally wouldn't risk exposing this app to the outside world. It has some bugs, is vulnerable to brute-force attacks, and stores the password in a plain text .env
file.
If I ever do, I will ensure that the features enabling manual Bitcoin JSON-RPC API calls are disabled.