cln-ledger

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

README.txt (461B)


      1 
      2 cln accounting
      3 ==============
      4 
      5 A script for converting CLN bkpr events to ledger-cli[1]
      6 
      7 Supports:
      8 
      9 - zaps
     10 - lnurl payments
     11 - routing
     12 
     13 Running
     14 -------
     15 
     16 Generate the events.txt file:
     17 
     18   $ lightning-cli bkpr-listaccountevents | jq -cr '.events[] | [.type,.tag,.credit_msat,.debit_msat,.timestamp,.description] | @tsv' > events.txt
     19 
     20 Build the ledger file:
     21 
     22   $ ./run > cln.ledger
     23 
     24 Run ledger report:
     25 
     26   $ ledger-cli -f cln.ledger bal
     27 
     28 
     29 [1] https://ledger-cli.org