<p>The mentioned lightning explorers show information from the gossip protocol which nodes usually have copied locally and provide to users. In clightning you can for example access that information with <code>lightning-cli listchannels</code> If I remember correctly  in lnd the command is <code>lncli describegraph</code>.</p>
<p>Gossip says a few meta data about what channels nodes accept. however in general a node cannot / will not guarantee that you will be able to route a payment of a particular size to node <code>n</code> (though in practisce it will most likely work)</p>

CC BY-SA 4.0
2021-04-28T10:13:56.427Z
I did try lncli describegraph but it doesn't seem to report any relevant metadata. I guess it wouldn't be that hard to write a script that walks the tree and sends an openchannel request. I was just curious if there was a better way.
sipsorcery
CC BY-SA 4.0
2021-04-28T11:06:34.203Z
Oh yeah on a protocol message you could actually send an `open_channel` message to everyone, collect the replies and then abort the protocol so that you would never have to write something to the chain before selecting your future channel partner. This will not solve your routing issue though but very good idea indeed
Rene Pickhardt
CC BY-SA 4.0
2021-04-28T10:03:36.437Z
2021-04-28T10:03:36.437Z
Rene Pickhardt
<p>Is there a tool to identify a Lightning node that will accept a channel open request and that matches the two conditions below?</p>
<ul>
<li>Accepts channel amounts of less than or equal to X.</li>
<li>Can route payments, directly or indirectly, to node N.</li>
</ul>
<p>The scenario is I want to send a small payment to node N but it only accepts new channel requests with amounts much large than X.</p>
<p>My only solution at the moment is to use an explorer to find all the nodes N has channels with and then try creating a channel with each of them for X.</p>

<lightning-network><lightning-routing>
Find Lightning node for channel creation based on amount and route
sipsorcery
# Find Lightning node for channel creation based on amount and route

(Asked by: username_0 on 2021-04-28)

Is there a tool to identify a Lightning node that will accept a channel open request and that matches the two conditions below?

* Accepts channel amounts of less than or equal to X.
* Can route payments, directly or indirectly, to node N.

The scenario is I want to send a small payment to node N but it only accepts new channel requests with amounts much large than X.

My only solution at the moment is to use an explorer to find all the nodes N has channels with and then try creating a channel with each of them for X.

**Tags:** lightning-network, lightning-routing


---

## 1 answers

### Answer by username_1 on 2021-04-28. Score: 1 | Accepted answer

The mentioned lightning explorers show information from the gossip protocol which nodes usually have copied locally and provide to users. In clightning you can for example access that information with `lightning-cli listchannels` If I remember correctly in lnd the command is `lncli describegraph`.

Gossip says a few meta data about what channels nodes accept. however in general a node cannot / will not guarantee that you will be able to route a payment of a particular size to node `n` (though in practisce it will most likely work)

> **Comments:**
> **username_0**: I did try lncli describegraph but it doesn't seem to report any relevant metadata. I guess it wouldn't be that hard to write a script that walks the tree and sends an openchannel request. I was just curious if there was a better way.  
> **username_1**: Oh yeah on a protocol message you could actually send an `open_channel` message to everyone, collect the replies and then abort the protocol so that you would never have to write something to the chain before selecting your future channel partner. This will not solve your routing issue though but very good idea indeed  

---

