Skip to content
/ payto Public

Core Lightning (CLN) companion app that can pay to lightning address, LNURL, BIP353 (DNS Payment Instructions) and bolt12 offers

Notifications You must be signed in to change notification settings

urza/payto

Repository files navigation

Core Lightning (CLN) companion app that can pay to lightning address, LNURL, BIP353 (DNS Payment Instructions) and bolt12 offers.

I wanted to be able to pay to lightning address directly from terminal using CLN (Core Lightnig), so I created this.

payto understands:
[✔] lightning address based on HTTP/LNURLP
[✔] lightning address based on bolt12 offer in BIP353 TXT DNS
[✔] LNURL (LUD 06, 12 and 17)
[✔] bolt12 offers

It is simple interactive command line application, that has no external dependencies. Only the standard dotnet library and compiles into single native binary.

It takes one argument - destination - and retrieves information how much can be sent. Then it asks for input - amount & comment and for final confirmation before sending the payment.

Fiat currencies can be used for amount if CLN currencyrate plugin is active.

All the heavy lifting is done by CLN (decoding, fetching & paying invoices) and Linux (DNSSEC validation in case of BIP353).

❗❗ Note on BIP353 state: treat this tool as a prototype when it comes to BIP353 - it works, can retrieve and parse bolt 12 offer from TXT DNS record, do basic DNS SEC validation by delv command and pay the offer. But this is not (yet) fully compliant with the BIP specification.

image

About

Core Lightning (CLN) companion app that can pay to lightning address, LNURL, BIP353 (DNS Payment Instructions) and bolt12 offers

Resources

Stars

Watchers

Forks

Languages