cln-ledger

CLN ledger accounting
git clone git://jb55.com/cln-ledger
Log | Files | Refs

commit 93f4107f84f1b3ffd4ad7c3320e0e691a059de74
parent cfe738ad31187d969142d6aba5387df15d797a49
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 31 May 2023 20:56:25 -0700

readme

Diffstat:
AREADME.txt | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/README.txt b/README.txt @@ -0,0 +1,29 @@ + +cln accounting +============== + +A script for converting CLN bkpr events to ledger-cli[1] + +Supports: + +- zaps +- lnurl payments +- routing + +Running +------- + +Generate the events.txt file: + + $ lightning-cli bkpr-listaccountevents | jq -cr '.events[] | [.type,.tag,.credit_msat,.debit_msat,.timestamp,.description] | @tsv' > events.txt + +Build the ledger file: + + $ ./run > cln.ledger + +Run ledger report: + + $ ledger-cli -f cln.ledger bal + + +[1] https://ledger-cli.org