<p>The command you are looking for is <code>listpeers</code>. That will only show your direct peers and the channels you have open with them.</p>

CC BY-SA 4.0
2018-11-25T16:44:27.107Z
2018-11-25T16:44:27.107Z
cdecker
<p>After connecting to a busy lighnting node such as <code>03c856d2dbec7454c48f311031f06bb99e3ca1ab15a9b9b35de14e139aa663b463@testnet-lnd.htlc.me</code> the number of channels my own lightning node knows about becomes very large.</p>

<p>Is there a way to get the <strong>lightning-cli listchannels</strong> command to apply a filter and list only the channels my node is directly participating in?</p>

<lightning-network><core-lightning><ln-topology>
lightning-cli list only my channels
sipsorcery
# lightning-cli list only my channels

(Asked by: username_0 on 2018-11-25)

After connecting to a busy lighnting node such as `03c856d2dbec7454c48f311031f06bb99e3ca1ab15a9b9b35de14e139aa663b463@testnet-lnd.htlc.me` the number of channels my own lightning node knows about becomes very large.

Is there a way to get the **lightning-cli listchannels** command to apply a filter and list only the channels my node is directly participating in?

**Tags:** lightning-network, core-lightning, ln-topology


---

## 1 answers

### Answer by username_1 on 2018-11-25. Score: 1 | Accepted answer

The command you are looking for is `listpeers`. That will only show your direct peers and the channels you have open with them.


---

