<p><code>lncli listchannels</code> will tell you the local balance and remote balance of each channel (in satoshis). </p>

<p>You could simply sum up the the balances of all your channels to find the total outgoing capacity (local balance) and incoming capacity (remote balance) you have. Here is a one-liner that reports the sum of your inbound capacity (requires <code>jq</code>):</p>

<p><code>lncli listchannels | jq -r '.channels[].remote_balance' | awk '{sum+=$1} END {print sum}'</code></p>

<p><code>lncli channelbalance</code>will give you the total outgoing capacity you have, but until AMP is commonplace, it may be more useful to know the capacity of your largest channel alone. </p>

CC BY-SA 4.0
2019-06-25T03:00:46.700Z
Yes, `remote_balance` is inbound, `local_balance` is outbound. Note that a channel must reserve a small balance for channel closing fees, so you might not always be able to spend the entire reported balance. Here is a one-liner to find inbound capacity (requires `jq`): `lncli listchannels | jq -r '.channels[].remote_balance' | awk '{sum+=$1} END {print sum}'`
chytrik
CC BY-SA 4.0
2019-06-24T11:34:27.850Z
Can you suggest a one-liner to do so?
alec_djinn
CC BY-SA 4.0
2019-06-24T16:33:45.200Z
I suppose the remote balance is the inbound, am I correct?
alec_djinn
CC BY-SA 4.0
2019-06-24T11:23:22.767Z
2019-06-25T08:16:33.913Z
2019-06-25T08:16:33.913Z
chytrik
<p>I expected to find an option on <code>lncli</code> to get the exact inbound and outbound capacity of my node, but this is not the case. What is the best way to have this information?</p>

<lightning-network><lightning-network-daemon>
How to get the outbound and inbound capacity of a node using LND?
alec_djinn
# How to get the outbound and inbound capacity of a node using LND?

(Asked by: username_0 on 2019-06-24)

I expected to find an option on `lncli` to get the exact inbound and outbound capacity of my node, but this is not the case. What is the best way to have this information?

**Tags:** lightning-network, lightning-network-daemon


---

## 1 answers

### Answer by username_1 on 2019-06-24. Score: 1 | Accepted answer

`lncli listchannels` will tell you the local balance and remote balance of each channel (in satoshis).

You could simply sum up the the balances of all your channels to find the total outgoing capacity (local balance) and incoming capacity (remote balance) you have. Here is a one-liner that reports the sum of your inbound capacity (requires `jq`):

`lncli listchannels | jq -r '.channels[].remote_balance' | awk '{sum+=$1} END {print sum}'`

`lncli channelbalance`will give you the total outgoing capacity you have, but until AMP is commonplace, it may be more useful to know the capacity of your largest channel alone.

> **Comments:**
> **username_0**: Can you suggest a one-liner to do so?  
> **username_0**: I suppose the remote balance is the inbound, am I correct?  
> **username_1**: Yes, `remote_balance` is inbound, `local_balance` is outbound. Note that a channel must reserve a small balance for channel closing fees, so you might not always be able to spend the entire reported balance. Here is a one-liner to find inbound capacity (requires `jq`): `lncli listchannels | jq -r '.channels[].remote_balance' | awk '{sum+=$1} END {print sum}'`  

---

