Skip to content

clightning4j/esplora_clnd_plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esplora_clnd_plugin

GitHub Workflow Status

c-lightning C plugin allows c-lightning to use esplora web explorer for fetching bitcoin data and send transactions.

Based on sauron plugin c-lightning plugin with esplora integration by darosior.

Deps

Install libcurl and libssl, on linux:

sudo apt-get install libcurl4-openssl-dev libssl-dev

Build

  1. call ./apply.sh <lightning_src_dir>
  2. run make in your lightning directory

Run

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

./lightningd/lightningd --testnet --disable-plugin bcli --log-level=debug

Full available options:

  • --esplora-api-endpoint=<url>: set esplora endpoint (as https://blockstream.info/testnet/api for testnet). If it is not specified, the plugin set the @Blockstream API by default in accord with the lightningd network conf.
  • --esplora-verbose=1: enable curl verbosity
  • --esplora-cainfo=<path>: set path to Certificate Authority (CA) bundle (CA certificates extracted from Mozilla at https://curl.haxx.se/docs/caextract.html)
  • --esplora-capath=<path>: specify directory holding CA certificates.
  • --esplora-disable-proxy: ignore the proxy conf from the lightnind node and use esplora without proxy, if this option is missed esplora use the same proxy of lightnind (if there is one).

About

Using @Blockstream Esplora web explorer to fetch bitcoin data for clightning

Resources

Stars

Watchers

Forks

Packages

No packages published