Is there a way to get information about channels from public nodes only via API?
The best with python.
pull down to refresh
100 sats \ 3 replies \ @k00b 25 Aug 2022
One of the lightning explorers probably has an api. @apleroy?
reply
120 sats \ 2 replies \ @andyleroy 25 Aug 2022
Thanks @k00b
@m4 every lightning node offers API access to the overall graph of all nodes and channels but there are some limitations to this depending upon your use cases.
For LND it is like this in python: https://api.lightning.community/?python#describegraph
To see the results of all of the nodes and channel info, updated over time - you may have a look here: https://app.exponentiallayers.com/
I'd love to learn a bit more about what you are working on or looking for - is hosted API access something you need for a project?
reply
10 sats \ 1 reply \ @m4 OP 25 Aug 2022
Thank you for hint. No professional project so far.
LN is different from BTC blockchain. I'd like to learn more how the network works.
reply
20 sats \ 0 replies \ @andyleroy 25 Aug 2022
Sure thing. Here is a quick tweet thread (actually about an Exponential Layers analytics & explorer bug and new feature I'm working on and retroactively adjusting) , but it may offer a bit of insight into capturing the data in LN and how it works:
And of course, tons of amazing content and overviews out there - just one starting point:
https://docs.lightning.engineering/
reply