Alright, so if you want to export the Lightning Network graph, it’s actually pretty doable. If you’re using lnd, you can grab the whole network graph by running the describegraph command. Just type in lncli describegraph, and boom—you get a JSON file with all the nodes and channels. You can save that file and do whatever you need with it.
If you’re on c-lightning, it’s a bit different. You’ll need to use the listchannels and listnodes commands to get the data. You can save each of those as JSON files too, like lightning-cli listchannels > channels.json for the channels, and the same for nodes.
After you’ve got the data, you can use something like Python’s NetworkX to visualize it, or you can just pop it into one of the Lightning Network explorers if you want a quick look.
It’s pretty simple once you know the commands. Let me know if you need any more help!











