Skip to content

This dead simple script allows you to generate a BOLT11 invoice from an Lightning Address. It asks for a Lightning Address and desired amount, and returns a BOLT11 invoice

License

Notifications You must be signed in to change notification settings

Velas-Commerce/lightning-address-invoice-generator

Repository files navigation

Lightning Address to BOLT11 Invoice Generator

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.

Lightning-Address Tutorial Mode

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.py

Lightning-Address Invoice Generator Script Usage

If 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.py

License

This 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.

About

This dead simple script allows you to generate a BOLT11 invoice from an Lightning Address. It asks for a Lightning Address and desired amount, and returns a BOLT11 invoice

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages