Needed: a tool that analyses the destination nodes from the invoices sent from your Lightning node and suggests you new channels to open to minimize the fees.

Simple but non-existent?

Reply to this note

Please Login to reply.

Discussion

Would be great

That's a great idea for a new https://channel.ninja/ feature! I'll see if I can implement that.

How would channel.ninja know where your invoices go to?

That I have to figure out 😁. Still learning...

😂

I'm sure this problem could even be solved with a single ninja bash command

Would be a hard core privacy violation to ask people to upload a json full of paid invoices... :-/

True. man you got me all excited there for a second..

Do it client-side.

I use WebLN on the client side. I can get a list of the payments (https://lightning.engineering/api-docs/api/lnd/lightning/list-payments). But I don't think you can get the payment destination out of it.

The destination is in the bolt11 invoice.

You also need to figure out the fees for the payment and potentially also the number of hops (since that would be strongly correlated with it but also decrements UX, independent of fees due to payment delay).

🤣

blocking-bits around.

Some bash ninja could probably solve this problem with a single crazy complex bash command combining lnd and jq

😳