I am looking for a way to find all the available connections and channels in the lightning network.
For example, if you go to www.1ml.com/testnet, you can see the number of nodes and number of connections. Somehow they achieve this information. How can I achieve it without going to their website and looking at it. Is there a code to do that?
Secondly, how can I find the list of all active nodes and channels in LN. Is there a code to do that?
Have a nice day!