This post is also available on:
LNbits
LNbits is a Lightning wallet and account system. With the help of LNbits, numerous Lightning walls and sub-wallets can be created and managed.
In addition, there are numerous Lightning applications (extensions) with which Lightning business models can be implemented. Lightning payment receipts generated from the Extensions are credited to the Lightning Wallets.
Under the address lnbits.com, LNbits operates the Lightning Wallet System, which can be shared. This is a very easy way to get started learning about LNbits.
However, you can also run the LNbits system on your own server and at your own address.
If you run a hardware node from Raspiblitz, you can activate LNbits on the Raspiblitz with a few clicks. How to enable LNbits on the Raspiblitz is explained at the end of this post.
Table of contents
- LNbits Lightning Wallet & Account System
- LNbits Extensions
- Paywall
- LNURL – LNURLp und LNURLw
- Point of Sale
- Event
- LightningTipBot
- LNbits on the Raspiblitz
LNbits Lightning Wallet & Accounts System
Those who operate their own Lightning Node manage their Lightning credits on a single account, so to speak. All Lightning deposits and withdrawals are credited/debited through the one account.
But now, if you have multiple applications or users, you want to record these payments separately. For this purpose, an account system is useful, with which corresponding sub-accounts can be created underneath a main account.
With these sub-accounts (wallets here), you can give each family member their own account or assign a separate wallet for each individual application.
Based on the LNbits Accounting System, any form of business application can be implemented where users need to manage, clear, receive or pay Lightning credits.
In the beginning, a wallet must first be created
This can be done via the website https://lnbits.com/ or you can use your own LNbits server running on the Raspiblitz or you can set up your own LNbits server with a hosting provider.
There is no registration with email and password, you just choose a name for your own LNbits Wallet. You have to remember or bookmark the url based on it to access your LNbits wallet again later.
In our example, we have given the LNbits wallet the name Coincharge and get the following view:
You can use this wallet to receive Lightning payments (Create Invoice) or to pay yourself via Lightning (Paste request).
You can add more wallets (Add a Wallet) to your account and you are not limited in the number.
For example, you can create a separate Lightning LNbits wallet for each application and thus record the Lightning payment separately for each application.
Those who have developed their own application can access the Lightning Wallet via API. The corresponding keys and API calls are provided.
User Manager
If you run an application in which users are to make and settle payments among themselves, you use the “User Manager” extension. Here, each user can create their own Lightning Wallet and then use it for clearing.
LNbits Applications & Extensions
The LNbits system has a variety of applications and extensions that interact with the LNbits Wallet System.
These extensions are Lightning applications that can be integrated to one’s website and the incoming Lightning payments are credited to the wallet.
There is now such a large number of Lightning applications that it is impossible to present them all here.
We focus on the applications that are most important for payment processing.
Paywall
LNbits can be used to create a paywall that can be used to sell digital content against Lightning.
With the help of a WordPress plugin blog posts can be unlocked against Lightning.
There is a WordPress plugin for this, which can be downloaded from https://github.com/lnbits/btcpaywall.
This WordPress plugin you install on your WordPress and embed a payment link within a blog post. When the reader pays the amount via Lightning, the full post can be read. The Lightning credit is made to your own LNbits wallet.
For detailed instructions on how to sell blog posts as pay-per-post with Lightning, see the post: Payment per Newspaper Article via Lightning.
But not only texts can be sold via a paywall.
With the extension LNbits Paywall videos, links or software downloads can be marketed.
To do this, activate the paywall extension within LNbits and create a new paywall.

You specify to which of the LNbits wallet the Lightning payments should be credited.
Then the url to which the payer will be redirected after a successful payment.
Then you can add a title and description and the amount you want the user to pay at least.
If the “Remember payments” checkbox is checked, then users will be able to revisit this link at a later time without paying again.
For the user it looks like the screenshot on the right.
If you want to access the page yourself, click on the following link:
https://coincharge.duckdns.org:20025/paywall/ToTsRsWUvouRFWShsfCLbi

You can find a YouTube tutorial about the paywall of LNbit here:
LNURL – LNURLp and LNURLw
With LNURL, Lightning payments (LNURL Pay) and Lightning withdrawals (Lightning withdraw) can be made from the Lightning Wallet.
You can find an explanation of LNURL under:https://coincharge.io/lnurl/
With the LNURL Withdraw function, you can organize the payment of commissions and credits. One informs a user that a credit is available for him to pick up. He can claim the Lightning credit by scanning the QR code and have it credited to his own Lightning Wallet.
The LNURLw extension can be used to create vouchers that can be made available to a group of users.
With the “Advanced Withdraw Link” function, even more detailed settings can be made.

You set up a Lightning Wallet and equip it with a corresponding Lightning credit.
We loaded the wallet with 1,000sats and selected the appropriate wallet.
The title of the link we call Coincharge Free Lightning.
Up to a maximum of 100sats can be withdrawn and the minimum amount is 20sats.
In total, Coincharge offers 10 users the opportunity to download Satoshi.
Between each collection we set a break of 10 minutes, so that the account is not emptied so quickly.
To ensure that one user does not clear the entire account alone, the “Reduce assmilking” checkbox is checked.
This means that each QR code can only be used once.
A YouTube video explains LNURL Withdraw via LNbits in more detail:
Point of Sale
With the extension TPoS a Lightning Point of Sale terminal can be created.

We set up a wallet for this extension and give the wallet the name CoinCafe.
Then we select our own FIAT currency in which we run our retail store and click on Create TPOS.
You will receive a link to the terminal point of sale:
https://coincharge.duckdns.org:20025/tpos/SLrerwwJvd2Y5BqNz5nuN7
Bookmark this link on your smartphone. Every time someone wants to pay with Lightning, then you call the link and specify the amount either in Euro or Lightning.
Then click OK and the QR code for payment will be displayed.
The buyer pays and the satoshi are credited to the wallet.
An English YouTube video of the Point of Sale terminal from LNbits can be found here:
Event
With LNbits Event Extension you can sell event tickets for your event via Lightning.

In the input mask you specify when the event will take place, how many tickets are available and how much the entrance fee is.
The page for the sale of tickets will look like the picture on the right.
But you can also call the link directly:
https://coincharge.duckdns.org:20025/events/QfrNF7A8S4djpqC3EgDcwf


The buyer can specify his name and email address.
After clicking Submit, the QR code for payment will appear.
After successful payment, the buyer will be shown a new page with the ticket.
This QR code will then be presented at the event. By scanning this QR code, the organizer can verify that the entrance fee of 100sats has also been paid and grant access.
An English YouTube video on how to create an event ticket from LNbits can be found here:
Set up LNbits
One can use the services of LNbits via LNbits.com. This page is definitely recommended to try out the different LNbits Extension for yourself.
If you want to use LNbits professionally, you should run your own LNbits server.
the YouTube video on the right explains how to set up your own LNbits server on your own server and run it under your own domain.
LNbits on the Raspiblitz
If you run your own Raspi flash, you have the possibility to activate LNbits under “Additional Services”.
If the Raspiblitz is operated in its own home network, LNbits must also be available from outside, i.e. via the Internet.
To be able to use LNbits completely, you have to proceed analogously to the activation of the BTCPay server. Instructions are available at Raspiblitz BTCPay Server.
LNbits requires that the LNbits server has a secured https connection. Accordingly, we proceed as follows:
- Activation of Tor (Run behind Tor) on the Raspiblitz via Node Settings & Options
- Activation of LNbits via Additional Apps & Services
- IP2Tor Bridge for LNbits via Subscriptions.
- Create a sub-level domain at DuckDNS with the IP address obtained from IP2Tor.
- Create a Let’s Encrypt certificate for the sub-level domain under Subscription
These individual steps are described in detail in the instructions under Raspiblitz BTCPay Server.
Once you have successfully completed all the steps, you will have your own LNbits server via a secured domain, which is accessible via the Internet.
About LNbits
LNbits offers a variety of interesting Lightning applications through the extension, which you can quickly and easily create and customize to your own needs.
With a little imagination, you will come up with more applications that you can implement and program yourself.
LNbits shows with its numerous applications what can be implemented with Lightning. Just try LNbits yourself and set up a LNbits wallet under LNbits or activate the LNbits service on your Raspiblitz.
This post is also available on:
Leave a Reply
Your email is safe with us.