It is this one, right? https://www.amazon.nl/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860
I will take a look at GitHub. Would prefer the book though. Looking to much at a screen a day ;-)
If you really, really want to know how it works, read this book: https://www.amazon.com/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860 and study it well.
One of the key features is that when you receive a payment, it' impossible to know where it came from. So what you ask is not possible, you need an invoice generated by your counterparty.
When there is no trusted party that can "cheat" by stealing money, by double spending or by blocking transactions then it is decentralized. https://www.amazon.com/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860
​
Shitcoins like xrp require trusted parties thus they are centralized.
do your homework instead of posting nonsense
https://www.amazon.com/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860
OP, you should study "proof of work" as opposed to "proof of stake" in depth, as well as the lightning network. Then you can make up your own mind. Here are some suggestions:
Some POW sources: https://www.lynalden.com/proof-of-stake/ https://youtu.be/Amcj-IKmGKA https://youtu.be/nvtGQ-7O1Tw
For scaling, read https://www.amazon.com/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860/ https://www.amazon.com/Blocksize-War-controls-Bitcoins-protocol/dp/B08YQMC2WM
Look no further than this ^ it's exactly what you're looking for and the authors are incredibly deserving of support if you want to buy a physical copy https://www.amazon.com/Mastering-Lightning-Network-Blockchain-Protocol/dp/1492054860