Skip to the content.
Español ES | Deutsch DE | Français FR | Italiano IT | Dutch NL | Hrvatski HR | Hindi HI

Originaly posted on Substack on Apr 19, 2023. Updated here on Dec 28, 2024.

How to spin up a LNbits instance on SaaS and configure it for a school project or a festival event

Recently LNbits team worked so hard to prepare a surprise solution for all bitcoiners: a LNbits on a SaaS, instant access to a LNbits instance on a hosted server, but with full control of the whole Lnbits. Announcement here.

This LNbits SaaS will simplify the whole process of installing and managing a LNbits instance, that any non-tech user could do it in max 10 min, even without a LN node as a funding source.

As you already know, reading my previous guides, LNbits is an incredible LN software solution for many use cases. This time, I will propose a different scenario using LNbits and focused on those that want a LNBits instance for a certain time or purpose. We are going to analyse the case of:

INTRODUCTION

Nowadays, many schools have an internal accounting system but is based on a fiat currency and also could not be controlled by parents, on how their children can spend their money.

Is not about being authoritarian, but about being efficient and focus the children to use their money on things that are useful and not on being able to spend on drugs, crime and external school activities. In the same time we can teach the kids about Bitcoin and LN, real life use cases and how they can manage their own wallets / finances.

Another use case, are the festivals, events, conferences, closed organizations that want to offer specific services and products to their participants/employees, during the event or inside the organization, like a bonus or reward system to be spend also internally.

There are so many applications and use cases where LNbits could be used, so please use your imagination and desire to use Bitcoin and LN and you will see how easy and fast you could setup a solution for many specific use cases. So let’s analyse these two use cases.

LNBITS SaaS – WHAT DOES IT MEANS?

SaaS – Software as a Service

LNbits SaaS – LNBits team is running a server that could spin up instantly a new LNbits instance for you, already configured with clearnet https access, hosted on a LNbits server.

Yes, the instance is custodial, but you are in full control of the instance and its funds. You could even export the database backup, if you want later to import it into another instance, that could be self hosted. SaaS and self hosted are fully compatible, using the same software code.

Think about is like a hosted Wordpress on a paid server. When you pay, you pay for hosting space, for domain name, core software already installed and no need to handle all the hassle with OS, security, backup, reliability.

The process is simple and takes just few minutes to be ready. You login to: https://saas.lnbits.com

Click on “LAUNCH” – new instance. It will pop-up a screen where you can pay a LNURL invoice, and the amount of sats you pay depends on how much time you want that LNbits instance active.

After paying the LN invoice, you will see the spinning wheels for few minutes and your LNbits instance will be ready. First login is with the super admin user. You can save the bookmark if you want, but also could be accessed later from the same login SaaS page.

Yes, for the time being, we still have to bookmark users access to LNbits page, until the new adminUI will be ready.

It is recommended to use the “User manager” extension, with the super admin user, where you create the future normal users / wallets. Also is better to disable this extension for normal users, so they could not create random additional users, that you could not “see” them in your super admin UI and cannot be managed.

So go to “Manage Server” – Server and add the “user manager” extension in the “Admin extensions”. That will disable it from normal users UI (not visible).

LNbits funding sources

I will mention briefly about the funding sources for LNbits. LNbits SaaS support all the funding sources as any normal LNbits instance and these are:

1. FakeWallet

Default source, which is using only as an internal source of funds and is credited automatically with 1M sats. From this source you can allocate sats to each wallet you want using the adminUI.

This is a very good option in case you want to use LNbits only in an internal / closed environment, not in public use and you want that users will “buy” those “sats credits” first and could not use them outside the event / organization.

This doesn’t mean you create a shitcoin or token, you simply create an internal use of sats, for specific use case.

2. LSP (Liquidity Service Provider)

Could be many other sources from custodial services like LNPay, OpenNode, Alby, NWC (Rizful) and many others that can provide an API to connect with the funding source.

These are practically LN nodes that can offer you an account and you can use it with their backend LN node liquidity, without bothering to manage the LN channels and stuff like that. Yes, are custodial, but you can easily withdraw anytime the funds, many are not KYC and are trusted services that will not put in danger their reputation for a meaningless rug pull.

These are good in case you can’t run your own node, or you don’t want to use your own node, but you still want to use that LNbits instance for both types of payments (internal and external).

3. Your own LN node

These are straight forward, connecting to your own node, no matter where is located and supports all major LN implementations (LND, CLN, Éclair) and Cliché plugin for Hosted Channels.

To configure each of funding sources is very easy, just go to LNbits “manage server” section and in funding tab you will find all these options. Fill the correct details, save the settings and wait for the LNbits SaaS to restart (it will take few moments). And done, now you can start using it with your desired funding source. Also it can be changed any time with a backup one and all the users accounts will not be affected.


A. LNBITS USED IN SCHOOL

This is a special and wonderful use case! I would love to see it used in practice in many schools, where pupils could learn to build solutions and applications based on BTC/LN and LNbits as core platform.

This is a special category, because it can be used only with the "FakeWallet" as funding source. That means the users could NOT use their School LNbits accounts outside of the school. For that they would need special approval and conversion from their teachers / managers / parents.

In this way, if the parents want to load up their "school LNbits account" with some pocket money, they will be with peace of mind that the funds will not be used on external non desired "items" (alchoolic drinks, drugs, illegal stuff etc).

There's also the aspect that using a real money funding source, could have more implications and specific setups, involving LN node management and real capital in the game. With a "fakeWallet" is not really necessary and is ready straight away. Also using the LNbits SaaS option is not necessary to build around a specific domain name. If is necessary it can be built a self hosted LNbits instance, as a school project, to learn how install and manage a full LNbits session and all things that imply it.

Yes, indeed, it can be used also a parallel LNBits instance with a real funding source, in case is needed a conversion of those "internal sats" into "real life sats".

In the same time could be a powerful tool for internal use in a school, with many applications that could incentive pupils in a more commercial free market activity. In this way they will learn how to appreciate and manage money, for useful things, learn how to save money and use them only when are really necessary, create a marketplace environment etc. Applications like:


B. LNBITS USED FOR AN EVENT / FESTIVAL/ CONFERENCE

If you want to use LNBits for an event or a music festival, a conference, you will have a surprise of how many options you have, all to serve the necessities of an internal accounting system, with a form of internal money (fake-sats) or even with real money (BTC/sats).

In case you want to use a separate system for selling extra stuff during the event, you can spin up a SaaS LNbits instance in just 5 min, using its default "FakeWallet" as funding source.

After the event, if users still didn't used all their Event "FakeSats", could exchange them back for real sats or give them away to organizers. The LNbits accounts will be open only during that event, could not be re-used on a future event.

Why is good to use an internal "fakeWallet" for such an event?

With a real LN funding source all these will be quite a challenge to be done. Is not impossible, but hard to achieve and mostly will end up with many frustrated users.

Is much easier that at the end of the event all the "credits" will be converted into real sats and done, everybody is happy.

Let's see some use cases for LNbits during an event:

And many other use cases, LNBits could provide multiple functionalities with all those 30+ extensions.


CONCLUSION

I hope this mini guide will just open your mind and offer you inspiration for your events or conferences, or helping your kids in schools to learn more how to use Bitcoin and LN. Is just a simple example of how to use LNbits in real life.

We are just starting to build a new future and we have these wonderful software solutions, made with a lot of passion by amazing BTC/LN developers.

You can also participate to this open source software, with any contribution you can: building new extensions, making guides, write documentation, find bugs or issues and help developers to fix them, building additional UI and API linked to LNbits core, creating various ways to use LNbits in real life and make a wonderful experience in using Bitcoin and LN.