Skip to content

rsbondi/clightning-go-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of plugins for use with clightning written in go using glightning

Plugins

remoteRPC

This plugin allows you to access all RPC commands using HTTP instead of the default of unix socket

more

stats

Shows some additional stats, currently shows forwarding info by channel, amount earned, percent gain etc..

more

dumpkeys

Export xpriv/xpub

more

setban

ban peers for specified time

more

multifund

fund multiple channels with single transaction

more

General Plugin Installation

download and install go

git clone https://github.com/rsbondi/clightning-go-plugin.git

cd clightning-go-plugin

# the DIRECTORY below is for the plugin you want to build
# example if you want to build remoteRPC plugin, use that directory
# this will build for your current architecture, for others see go documentation
go build -o path/to/where/you/want DIRECTORY

Once the plugin is built, there are several ways to use it.

Add plugin info to the config file plugin=path/to/plugin

Also in the above link, you can specify plugin-diroption and put the plugin there, or note from the ling you can also use the defualt plugin directory.

In addition to the config file,you can also add these options when launching the daemon

lightningd --plugin=path/to/plugin [other options]

or --plugin-dir as command line option

Additionally with version 0.7.2 forward, you can use the cli/rpc to launch

note

The old directory was my initial attempt at creating a plugin module for clightning but glightning is a much more complete effort of what I intended to achieve, I suggest using it and see no need for me to continue with a duplicate effort, but keeping for reference examples

Releases

No releases published

Packages

No packages published

Languages