This is a stepwise instruction on how to install or run LN explorer within Esplora
-
Download / Clone clightning-node-server repo from https://github.com/vinayaksh42/clightning-node-server
-
npm install
withing the above repo. -
cp config/example.default.json config/default.json
run this command for making a copy of the default configuration file -
The configuration must point towards a valid PostgreSQL database containing Lightning network gossip messages. Example of a config file is provided within the clightning-node-server.
-
Feel free to use this SQL database dump for creating your own database with LN gossip messages - https://drive.google.com/file/d/18T0NAxR_bwmMcE2qTPqVvpA08haulYjk/view?usp=sharing
-
npm run start
to get the server started. -
Download / Clone Blockstream/esplora repo with LN explorer changes from - https://github.com/vinayaksh42/esplora/tree/channelUpdate or directly download from esplora repo if it is up to date.
-
npm install
within the Esplora repo -
enter the following env variables via command prompt -
export IS_LN=true export LN_API=http://localhost:3000/ export API_URL=https://blockstream.info/api/
The above variables will make esplora point towards your cligthning node server as well as Esplora's API, you can change them accordingly
-
npm run dev-server
for starting the frontend of Esplora. -
channel/scid
points towards individual channel profiles andnodeprofile/nodeid
points towards individual node profiles.