Skip to content

Latest commit

 

History

History
93 lines (65 loc) · 1.76 KB

lnbalance.md

File metadata and controls

93 lines (65 loc) · 1.76 KB
layout title parent grand_parent nav_exclude has_toc
default
lnbalance script
+ Lightning
Bonus Section
true
false

Bonus guide: lnbalance

{: .no_toc }


The following script was created by RobClark56{:target="_blank"} and helps to get a better system overview.

Difficulty: Easy {: .label .label-green }

Status: Tested v3 {: .label .label-green }

lnbalance illustration


Table of contents {: .text-delta }

  1. TOC {:toc}

Install the script

  • As user “admin”, download the script

    $ cd /tmp
    $ wget https://raw.githubusercontent.com/raspibolt/raspibolt/master/resources/lnbalance
  • You can investigate the content of the script to ensure that there is no malicious code in it. Once done press q to quit.

    $ less lnbalance
    > #!/bin/bash
    > # RaspiBolt channel balance display, by robclark56
    > [...]
  • Make the script executable (check by displaying the file name, it should have become green)

    $ chmod +x lnbalance
    $ ls -la
  • Move the file to the global bin(aries) folder

    $ sudo mv lnbalance /usr/local/bin
    $ cd

lnbalance in action

  • With the "admin" user, run lnbalance

    $ lnbalance
    > mainnet (sat)        |       Local|      Remote|Commitment Fees|
    > Wallet               |      122236|            |               |
    > Active Channels    12|      919850|      822047|           5655|
    > Inactive Channels   0|           0|           0|              0|
    > Total              12|     1042086|      822047|           5655|

Uninstall

  • To uninstall lnbalance

    $ sudo rm /usr/local/bin/lnbalance
    $ cd




<< Back: + Lightning