A blockchain explorer is a web interface for browsing blocks, transactions and addresses. Running your own, connected to your own node, means your lookups are not visible to a third party and are not subject to a public explorer’s rate limits or outages. This guide explains what an explorer needs underneath it, installs a lightweight Bitcoin explorer step by step, and is honest about which setups fit on a VPS.
What an Explorer Needs
| Layer | Example | Needed for |
|---|---|---|
| A node | Bitcoin Core | Blocks and the current chain |
| A transaction index | txindex=1 in Bitcoin Core | Looking up any transaction by ID |
| An address index | electrs or Fulcrum | Address balances and history |
| The explorer | BTC RPC Explorer, mempool | The web interface |
The indexes are what make an explorer useful — and they require a full, unpruned copy of the chain. That decides whether it fits on your server.
Will It Fit on a VPS?
A full Bitcoin node with a transaction index needs hundreds of gigabytes of fast storage and keeps growing; adding an address index needs more again. Ethereum explorers usually need an archive node measured in terabytes. Compare those figures with the storage on each plan on the hardware specifications page before you begin.
Setups that fit comfortably:
- A test network such as Bitcoin signet or testnet — the same software, a small chain, ideal for development.
- A smaller chain whose full history fits the disk.
- A pruned mainnet node with BTC RPC Explorer, accepting that you can browse recent blocks and the mempool but cannot look up old transactions or addresses.
Example: BTC RPC Explorer on Bitcoin Core
BTC RPC Explorer is a lightweight, open-source explorer that talks to Bitcoin Core over RPC and needs no separate database.
Step 1 — Prepare the Node
In bitcoin.conf, keep RPC on localhost and, if the disk allows, enable the transaction index (this requires an unpruned node and triggers a one-off reindex):
server=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
txindex=1
# for a small test chain instead of mainnet:
# signet=1
Let the node finish syncing before you connect anything to it: bitcoin-cli getblockchaininfo should show "initialblockdownload": false.
Step 2 — Install Node.js and the Explorer
Install a current Node.js LTS release (see How to Install Node.js with NVM), then, as a non-root user:
npm install -g btc-rpc-explorer
Step 3 — Configure the Connection
The explorer reads its settings from environment variables, or from ~/.config/btc-rpc-explorer.env:
BTCEXP_HOST=127.0.0.1
BTCEXP_PORT=3002
BTCEXP_BITCOIND_HOST=127.0.0.1
BTCEXP_BITCOIND_PORT=8332
BTCEXP_BITCOIND_COOKIE=/var/lib/bitcoind/.cookie
Using the node’s cookie file avoids storing an RPC password; the explorer’s user needs read access to it. Check the project’s README for the full list of options for your version.
Step 4 — Run It as a Service
[Unit]
Description=BTC RPC Explorer
After=network.target bitcoind.service
[Service]
User=explorer
ExecStart=/usr/bin/env btc-rpc-explorer
Restart=on-failure
[Install]
WantedBy=multi-user.target
Use the full path that which btc-rpc-explorer prints for that user. Then sudo systemctl enable --now btc-explorer.
Step 5 — Reach It Safely
The explorer listens on 127.0.0.1:3002. For personal use, an SSH tunnel is enough:
ssh -N -L 3002:127.0.0.1:3002 user@your-vps
# then open http://localhost:3002
To share it, put Nginx in front with HTTPS and HTTP basic authentication, or restrict it to your own IP addresses — see Nginx as a Reverse Proxy.
Going Further: Address Lookups and mempool
For address balances and history, add an Electrum server index (electrs or Fulcrum) on top of the full node and point the explorer at it. The mempool project offers a more visual explorer with fee estimates, deployed with Docker, and also expects a full node plus an Electrum server. Both need the full unpruned chain and generous disk.
Resources
Initial indexing is disk-heavy and slow on spinning storage, so use NVMe for anything beyond a test chain — see NVMe VPS. Plan memory for the node, the indexer and the explorer together, not for the node alone.
Common Problems
“RPC Error” or a blank page — wrong host, port or credentials, or the explorer cannot read the cookie file. Test with bitcoin-cli getblockcount as the same user.
Transaction lookups fail — txindex=1 is not enabled, the reindex has not finished, or the node is pruned.
Everything is slow during initial sync — expected. Let the node and indexes finish before judging performance.
Continue Reading
- How to Run a Bitcoin Full Node on a VPS
- How to Secure a Cryptocurrency Node on a VPS
- How to Monitor Blockchain Node Sync Status and Health
- Buy a VPS with Bitcoin
Browse more articles in Cryptocurrency & Blockchain Node Hosting.