Skip to content

Using esplora (as possible) web explorer to fetch bitcoin data for clightning

Notifications You must be signed in to change notification settings

darosior/esplora_clnd_plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

esplora_clnd_plugin

c-lightning C plugin to use (as possible) esplora web explorer to fetch bitcoin data.

1st c-lightning plugin with esplora integration is sauron plugin developped by darosior.

Build

  1. copy esplora.c and Makefile into lightning/plugins folder
  2. edit main lightning/Makefile as the following:
  • add esplora plugin to PLUGIN list
PLUGINS=plugins/pay plugins/autoclean plugins/fundchannel plugins/bcli plugins/esplora
  • add libcurl to LDLIBS dep (needed for esplora plugin)
LDLIBS = -L/usr/local/lib -lm -lgmp -lsqlite3 -lz -lcurl $(COVFLAGS)
  1. run make on your lightning folder

Run

Disable bcli plugin in order to fetch bitcoin data from esplora plugin, and set plugin options, as the following:

lightningd --testnet --disable-plugin bcli --log-level=debug \
--blockchair-api-endpoint https://api.blockchair.com/bitcoin/testnet --esplora-api-endpoint https://blockstream.info/testnet/api

Extra options:

About

Using esplora (as possible) web explorer to fetch bitcoin data for clightning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 85.6%
  • Makefile 14.4%