0.0 Intro:
Welcome, stackers and newbies! The aim of this third guide is to help you step-by-step to connect your LNbits wallet to Stacker.News (SN). This integration will enable you to seamlessly autowithdraw your sats and become a sovereign bitcoiner. Believe it or not, it will be not that technical like the
phoenixd
integration guide, and even simpler than attaching Coinos wallet.1.0 Requirements:
- 1 SN account! Not joking... if you did not sign up already, DO IT NOW!!
- 1 s̲e̲l̲f̲-̲h̲o̲s̲t̲e̲d̲ Bitcoin Lightning node or custodial
NOT RECOMMENDED!
. - 1 LNbits wallet instance, ideally self-hosted in your server or node, check available options below.
- Some basic understanding of Bitcoin and the Lightning Network (LN). Not required but useful!
Note: As mentioned above, you'll need to have your own LNbits instance, self-hosted is the ideal solution to keep your stash safe from any cutodial inconveniences. For the purposes of this guide, and just as an example, I'll be using a d̲e̲m̲o̲.̲l̲n̲b̲i̲t̲s̲.̲c̲o̲m̲ account ONLY as showcase playgraund, do NOT use it yourself as your precious sats could be at risk, seriously! It will work exactly in the same way when run LNbits in your server or bitcoin lighting node.
1.1 External guides
If you need some more guidance learning about LN and LNbits, reading @Darthcoin guides is highly recommended:
- What Bitcoin LN node software can I run?
- Tip of the day: How can I run a LN node without full Core?
- Getting started with LNbits
- Umbrel node + LNBits
1.2 Self-hosted options
Just as a reminder, LNbits is available on all and every LN nodes management systems on the internet. SThe most common and trusted ones are MyNode, RaspiBlitz, Start9, Umbrel.
Whatever implementation you chose, search and download the app or if not available you can alternatively install it from the source code hosted in github repository, it's open-source!
1.3 NOT RECOMMENDED! custodial options
Now, assuming you are set with your SN account, Lightniing node, and LNbits instance running, let's start!
2.0 Obtain Your LNbits Wallet API Keys
First thing first, you'll need to create a LNbits admin user from where you'll be able to manage the node and any other subaccounts (if needed). The username picked will become the name of your default wallet, in this example
Stacker News
.Important! You must save your login credentials to be able to access your wallet again. If you lose them, you will lose access to your wallet and funds. Set up yourusername
on your ACCOUNT SETTINGS page and then click the [SET PASSWORD] button. Make sure you save it in a safe place, and let's go back to the wallet.
To connect your LNbits wallet to Stacker.News, you'll need to obtain your wallet's details. A default wallet is created during the signup process, so the only thing you need to do is to retrieve the credentials under the Node URL, API keys and API docs tab at the bottom of the right sidebar.
You'll see there the following in the order SN requires it:
- Node URL:
https://demo.lnbits.com
- Invoice/read key:
****************
- Admin key:
****************
Keep this tab open and...
3.0 Access Stacker.News Wallet Integration Page
After login, open your SN's user menu and navigate to the "Wallets" section, then click on the big blue [attach wallet] button:
You'll see at the bottom the LNbits card, click on its [attach 🔌] button also accessible from this link
https://stacker.news/settings/wallets/lnbits
:4.0 Fill in the LNbits Wallet Details
On the LNbits wallet connection page, enter the information details from your LNbits wallet mentioned in step 2.0. Double check you insert the information with the correct order as follows:
- lnbits url on SN = Node url from LNbits,
- invoice key for receiving on SN = Invoice read/key from LNbits,
- admin key for sending on SN = Admin key from LNbits,
We are nearly there... just make sure to set:
- desired balance =
0
, - max fee to a min of
1%
and... - . ... click on the yellow [ attach ] button.
5.0 Congratulations, stackers!
You just did your first step into bitcoin sovereignty! Your sats now should be landing directly in your Lightning node. Happy stacking!
PS: Let us know how you go with this and if there's any way we can improve this guide. In case you get anerror
in the logs after clicking the attach button, report it in a comment below and we'll try to figure out what's wrong.