• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Where can I download a snapshot of the Lightning network topology?

Started by Bitcoin, Mar 24, 2022, 04:40 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Where can I download a snapshot of the Lightning network topology?

I want to study the properties of the Lightning network graph. Is there a way to obtain a reasonably fresh snapshot containing nodes and channels (say, in JSON format)? There are multiple explorers available (e.g. listed in this question), but AFAIK none of them provides the underlying data for download.


(I could just launch my own node and query the data with allnodes / allchannels or a similar command, but that requires synching a non-pruned full node, which I'm trying to avoid at the moment.)


UPD: 1ML does provide some JSON (look for the JSON button on various pages). For example, https://1ml.com/testnet/node?json=true gives the JSON description of the top 50 nodes. I haven't found the way to get this data for all nodes though.


UPD2: a related question: Obtaining Lightning network graph data.


Source: Where can I download a snapshot of the Lightning network topology?