3

I was wondering if it is possible for me to obtain data about the Lightning network mainnet, particularly the nodes and the edges (channels) in the network. I know that the graph is visualized in explorers such as https://lnmainnet.gaben.win/ and https://graph.lndexplorer.com/. I wish to obtain the data itself so I can reconstruct the graph and run some network simulations for my research. I understand that the standard way is to run a Lightning node yourself and then sync for the network's topology through your node. However, I do not have access to the computational resources and memory to run a full Lightning node.

If anyone knows of a way I can obtain the data without having to run a Lightning node, or has the data and is willing to share it for purely research purposes, it would be of tremendous help.

Thank you!

1

Here's a snapshot of the listchannels output on c-lightning as of Feb 19 2018 https://gist.github.com/coinables/4f29d85c3902b3d8b0d929cd318af3f9

And same time as above but the output is for listnodes https://gist.github.com/coinables/19223b8bf09a24a3a6e8240433df04bf

With these two data sets you should be able to create a simple nodes & edges relationship chart. Here's a very rough example using sigma.js, but the performance is quite poor. https://gist.github.com/coinables/034003b80148e88f68c641950ff08956

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.