This is my bolt12 code as an example.

Reply to this note

Please Login to reply.

Discussion

Ok but what do we do with this? Can we zap using this instead of an ln address?

yes you can but almost no wallet supports it, only Phoenix and maybe Zeus?

Also Strike supports it 😉 it's not that hard to add if you are on something other than lnd. And even on lnd you can add that afaik with some wrapper library.

The user wallet must support sending to bolt12 addresses. Currently only cln and phoenix i think

Ohhh that sucks :(

Bolt 12 is supported by at least a dozen wallets, and increasing rapidly. Also supported by Strike and Boltz exchange.

https://github.com/Rsync25/awesome-bolt12/

Yes, exactly. Essentially it uses the lightning network for the communication (instead of TCP/IP + DNS) and retrieving the invoice.

All lightning nodes except for lnd support it.

The Bolt 11 "ln" invoices aren't designed for re-use. Whereas a Bolt12 "lno1..." is a static re-usable key, with native privacy.