<p>First of all yes these are your earnings from routing. You can check <code>lightning-cli listforwards</code> to get a list (in json) to see through wich channel routings have been attempted and settled or failed. In particular you can analyze the routing fees per channel from the output of that command.</p>

<p>If you are interested in channel balances you can use <code>lightning-cli listfunds</code> to see how much balance is on which side of the channel.</p>

<p>As for the message you received someone offered you to balance their channels through you by asking how your capacity is organized on particular channels. You can find that information with the above mentioned listfunds command. You also have the power to share this information. Morally you should have the consent of your channel partners. </p>

<p>As for python: Checkout my <a href="https://www.youtube.com/watch?v=HXVDwRnU7_I&amp;list=PLaRKlIqjjguB_MxPhs5Fj8g2YX56D4N5l&amp;index=2&amp;t=0s" rel="nofollow noreferrer">Hack a LAPP video series</a> or my git repo <a href="https://github.com/renepickhardt/HackALapp/blob/master/startServer.py" rel="nofollow noreferrer">for the code of that LAPP</a> that shows how to interact with the Lightning rpc interface. </p>

<p>most important lines will be: </p>

<pre><code>from lightning.lightning import LightningRpc
rpc_interface = LightningRpc("~/.lightning/lightning-rpc") 
print(rpc_interface.listforwards())
print(rpc_interface.listfunds()["channels"])
</code></pre>

<p>If you know python it should be easy to adapt to xls output</p>

CC BY-SA 4.0
2019-02-14T12:09:08.567Z
Please provide a link to the specific episode, or code, don't advertise an entire series. Also if possible it'd be nice to include the relevant code here, in order to avoid cross-referencing things that might disappear.
cdecker
CC BY-SA 4.0
2019-02-14T15:30:24.507Z
Thanks for pointing this out. I will do that in the way you suggest - like I usually do - once I don't have a mobile client but a real interface.
Rene Pickhardt
CC BY-SA 4.0
2019-02-14T19:07:00.510Z
No problem, judging from your other extensive responses this felt a bit different :-)
cdecker
CC BY-SA 4.0
2019-02-14T10:26:51.807Z
2019-02-15T17:34:12.587Z
2019-02-15T17:34:12.587Z
Rene Pickhardt
<p>I have now clightning running for a month. I watch very often lightning-cli getinfo</p>

<p>Here I found in the first three weeks: </p>

<pre><code>"msatoshi_fees_collected": 0
</code></pre>

<p>A week ago it changed to </p>

<pre><code>"msatoshi_fees_collected": 1445
</code></pre>

<p>and since today:</p>

<pre><code>"msatoshi_fees_collected": 50483
</code></pre>

<p>Now my questions:</p>

<ol>
<li>I believe it is my earnings resulting from using one of my 36 channels. Which one(s)?</li>
<li>I want to know my channel info including name, address of nodes and fundings on both ends.</li>
<li><p>Is there a skeleton for a python program available that could fetch info and put it into a table like an excel sheet?</p></li>
<li><p>I got this message:</p></li>
</ol>

<blockquote>
  <p>I created a channel with you. If any of your channels to
  TrueVision.club, LightningTo.Me, or blindedbythelight has all local
  balance and no remote balance, then I can help equalize those balances
  for you. Doing so would also mean my channel to you would have local
  and remote balances more equalized so there wouldn't be a need for you
  to create a channel back. It requires a bit of coordination so I
  understand if you'd rather not. Feel free to create a channel back if
  you want.</p>
</blockquote>

<p>Frankly, I don't understand it. What should I do? How can I see what happen here? RENE, I need your help ;-)</p>

<p>bye</p>

<p>Ronald</p>

<core-lightning>
Please help me to understand lightning-cli getinfo more
Ronald Wiplinger
# Please help me to understand lightning-cli getinfo more

(Asked by: username_0 on 2019-02-14)

I have now clightning running for a month. I watch very often lightning-cli getinfo

Here I found in the first three weeks:

```
"msatoshi_fees_collected": 0

```

A week ago it changed to

```
"msatoshi_fees_collected": 1445

```

and since today:

```
"msatoshi_fees_collected": 50483

```

Now my questions:

1. I believe it is my earnings resulting from using one of my 36 channels. Which one(s)?
2. I want to know my channel info including name, address of nodes and fundings on both ends.
3. Is there a skeleton for a python program available that could fetch info and put it into a table like an excel sheet?
4. I got this message:

> I created a channel with you. If any of your channels to
> TrueVision.club, LightningTo.Me, or blindedbythelight has all local
> balance and no remote balance, then I can help equalize those balances
> for you. Doing so would also mean my channel to you would have local
> and remote balances more equalized so there wouldn't be a need for you
> to create a channel back. It requires a bit of coordination so I
> understand if you'd rather not. Feel free to create a channel back if
> you want.

Frankly, I don't understand it. What should I do? How can I see what happen here? username_1, I need your help ;-)

bye

username_0

**Tags:** core-lightning


---

## 1 answers

### Answer by username_1 on 2019-02-14. Score: 2

First of all yes these are your earnings from routing. You can check `lightning-cli listforwards` to get a list (in json) to see through wich channel routings have been attempted and settled or failed. In particular you can analyze the routing fees per channel from the output of that command.

If you are interested in channel balances you can use `lightning-cli listfunds` to see how much balance is on which side of the channel.

As for the message you received someone offered you to balance their channels through you by asking how your capacity is organized on particular channels. You can find that information with the above mentioned listfunds command. You also have the power to share this information. Morally you should have the consent of your channel partners.

As for python: Checkout my [Hack a LAPP video series](https://www.youtube.com/watch?v=HXVDwRnU7_I&list=PLaRKlIqjjguB_MxPhs5Fj8g2YX56D4N5l&index=2&t=0s) or my git repo [for the code of that LAPP](https://github.com/username_1/HackALapp/blob/master/startServer.py) that shows how to interact with the Lightning rpc interface.

most important lines will be:

```
from lightning.lightning import LightningRpc
rpc_interface = LightningRpc("~/.lightning/lightning-rpc") 
print(rpc_interface.listforwards())
print(rpc_interface.listfunds()["channels"])

```

If you know python it should be easy to adapt to xls output

> **Comments:**
> **username_2**: Please provide a link to the specific episode, or code, don't advertise an entire series. Also if possible it'd be nice to include the relevant code here, in order to avoid cross-referencing things that might disappear.  
> **username_1**: Thanks for pointing this out. I will do that in the way you suggest - like I usually do - once I don't have a mobile client but a real interface.  
> **username_2**: No problem, judging from your other extensive responses this felt a bit different :-)  

---

