These dead simple scripts allow you to generate a BOLT11 invoice from an Lightning Address.
There is a tutorial script that has a walk-through, lots of printouts and a general guide through how it all works.
There is also a simple invoice generator, which can be used to quickly pull invoices from any Lightning Address.
It asks for a Lightning Address and desired amount, and returns a BOLT11 invoice.
Hecho con ❤️ y ⚡ en Puerto Rico 🏝️
This script is almost completely lifted from https://sendsats.to/. It's a cool site for using your Lightning Address.
Check out the tutorial mode script for a complete step-by-step guide on how these Lightning Addresses work.
You can run through the script code for review. Once it makes sense, run the script with:
$ python3 lightning-address-tutorial.pyIf you are just looking to quickly pull invoices from a Lightning Address, use this script. It has better error handling and less informational printouts.
You can run the script using Python 3. Make sure you have Python 3 installed on your system.
To run the script:
$ python3 lightning-address-invoice-generator.pyThis project is free and open source software designed to be stolen. Please steal this code and make something better, original or fun.
This project is licensed under the terms of the MIT license. For more details, please see the LICENSE file.