lnbits-legend/docs/guide/faq.md
2023-01-18 17:28:39 +01:00

13 KiB
Raw Blame History

layout title nav_order
default FAQ 5

FAQ - Frequently Asked Questions on LNbits

Install options

    LNbits is not a node management software but a lightning only accounting system on top of a funding source.

    Funding my LNbits wallet from my node doesnt work.

    You will need to edit the lnd.conf file for this. The parameter to be included are allow-circular-route=1 respectively allow_self_payment=1.

    Funding source only available via tor (Umbrel, Citadel, ..)

    Funding source is in a cloud

      Voltage: lnd.conf cannot be edited atm

    LNbits via clearnet domain

      trezor hannes

    Other funding sources (e.g bots)

      The new LNbits manual shows you which sources you can use and how to configure each here

    Advanced setup options

      Can I prevent others from generating wallets on my node?

      When you run your LNbits in clearnet basically everyone can generate a wallet on it. Since the funds of your node are bound to these wallets you might want to prevent that. There are two ways to do so

    • configure the allowed users / extensions in the .env file
    • configure the allowed users / extensions via the Usermanager-Extension. You can find more info about the superuser and the admin extension here Please not that all entries in the .env file will not be the taken into account anylonger after you activated the admin extension.

Troubleshooting

    Message "https error" or network error" when scanning a QR made on LNbits

    Bad news, this is a routing error that might have quite a lot of reasons. Lets try a few of the most possible problems and their solutions.

    A - LNbits is running behind Tor only, you can't open it on a public domain like lnbits.yourdomain.com

    <li>Open your LNbits LNURL page using the .onion URI, so the QR is generated using an accessible .onion URI. Do not generate that QR from a .local URI, because it will not be visible over internet, only in your LAN.</li>
    <li>Open your LN wallet app that you use to scan that QR, using Tor connection. Otherwise your app cannot read that .onion URI. If the app it doesn't have integrated Tor, you can use Orbot (Android).</li>
    

    B - If you run your LNbits over Tor and want to offer public LN services, you should consider to move it to a clearnet (domain/IP) access, with https SSL certificate.

    • The easiest way (2 min setup) is to use Caddy. Just follow the instructions from here and your LNbits will be accesible through clearnet https. You must have a domain and be able to configure in your DNS records a subdomain for your LNbits instance (eg. lnbits.mydomain.com). Also you need access to your internet router to open the port 443 and forward it your LNbits IP machine in your LAN.
    • You can also use apache option, explained in the LNbits installation manual.
    • If you LNbits run in a bundle node (Umbrel, Citadel, myNode, Embassy, Raspiblitz etc), you can follow this extensive guide with many options to make your Tor only LNbits into a clearnet LNbits.
    Wallet-URL deleted, are funds safu ?

      Wallet on demo server legend.lnbits

      Always save a copy of your wallet-URL, Export2phone-QR or LNDhub for your own wallets in a safe place. LNbits CANNOT help you to recover them when lost.

        <p>
        <details><summary>Wallet on your own funding source/node</summary><p>Always save a copy of your wallet-URL, Export2phone-QR or LNDhub for your own wallets in a safe place. You can find all LNbits wallet-IDs in your LNbits database. 
           </ul>
        </details> 
      </p></ul>
      

Building hardware tools

Use cases of LNbits

    Merchant

    Voucher

    NFC Cards, Badges, Rings etc.

      Printed voucher links or tippingcards

      To write cards you will need LNbits to be available in clearnet. Please consider running your own LNbits instance for this.

        LNURLw are strings that represent a faucet-link to a wallet. By scanning it, everyone will be able to withdraw sats from it. A LNURLw can be either a QR that leads to a static link or to one that responds with new invoices every time it is scanned (click "no assmilking"). You can create these QR by adding the LNURLw extension and generate the vouchertype you need.
        • Voucher can as well be printed directly from LNbits. After you created it, click the "eye" next to the link. By pressing the printer-button you print the plain QR but you could as well integrate it into a nice tippincard or voucher template by choosing "Advanced voucher" -> "Use custom voucher design". We collected some designs as well as templates to make your own ones under this LNbits voucher video-guide.. You will be able to create and print as much voucher as you like with it. Happy orangepilling!
        • Note that your LNbits needs to be reachable in clearnet to offer vouchers to others.
      Creating a NFC card for a wallet

      To write cards you will need LNbits to be available in clearnet. Please consider running your own LNbits instance for this.

    • On top to just printing voucher for your wallet you can also write these LNURLw to a simple NFC card fromon NTAG216 by not clicking the printer but the NFC symbol on android/chrome and tapping your card against the device. This will enable the cardholder to directly spend those sats at a tpos, pos or wallet-app another one uses that can handle lightning payments via NFC.
    • If you run an event and want to hand out bigger amounts of cards with simple voucher links on consider this NFC-brrr batch tool as well as using NTAG424 cards, so that your customers can rewrite them later with an own wallet and the boltcard service (see ff)
    • For bigger amounts the Boltcard-Extension should be used. It will generate a link that sends a new invoice every time it is used for payments and keeps track too if the allowed card-ID is redeeming funds. Hence the setup of Boltcards is a bit safer but it needs some additional tools. You can find further infos on creating or updating boltcards here.
      <p><b>Ressources</b><ul>
    
  • PlebTag, infos, Lasercards, Badges
  • Coincorner Boltcard
  • Lasercards
  • Bitcoin Ring
  • Badge

Developing for LNbits

Did you know?

    Transaktion details

    Where can I see payment details?

    When you receive a payment in Lnbits, the transaction log will display only a resumed type of the transaction. Like this:

    lnbits-tx-log.png

    As you can see on the left side, there's a little green arrow for receiveing or red arrow for sending. If you click on that arrow, will popup a screen with more details about the transaction, including the message and the name attached to the payment.

    If the sender's LN wallet support LUD-18 (nameDesc) will also insert an alias/pseudonym preceeding the comment. This is optional and only if the sender want to send that name. It can be any name and not related to real names.

    lnbits-tx-details.png

    Can I receive a comment/message to my LNURL-p QR?

    When you create a LNURL-p, by default the comment box is not filled. That means comments are not allowed to be attached to payments. In order to allow comments, add the characters lenght of the box, from 1 to 250. Once you put a number there, the comment box will be displayed in the payment process. You can also edit a LNURL-p already created and add that number.

    lnbits-lnurl-comment.png

    Can i deposit onchain btc to LNbits ?

    There are multiple ways to exchange sats from onchain btc to LN btc (resp. to LNbits).

    A - Via a swap service like Boltz, FixedFloat, DiamondHands or ZigZag.

    This is useful if you provide only LNURL/LN invoices from your LNbits instance, but a payer only has onchain sats so they will have to the swap those sats first on their side.

    The procedure is simple: user sends onchain btc to the swap service and provides the LNURL / LN invoice from LNbits as destination of the swap.

    B - Using the Onchain LNbits extension

    Keep in mind that this is a separate wallet, not the LN btc one that is represented by LNbits as "your wallet" upon your LN funding source. This onchain wallet can be used also to swap LN btc to (e.g. your hardwarewallet) by using the LNbits Boltz or Deezy extension. If you run a webshop that is linked to your LNbits for LN payments, it is very handy to regularily drain all the sats from LN into onchain. This leads to more space in your LN channels to be able to receive new fresh sats.

    Procedure

    • Use Electrum or Sparrow wallet to create a new onchain wallet and save the backup seed in a safe place
    • Go to wallet information and copy the xpub
    • Go to LNbits - Onchain extension and create a new watch-only wallet with that xpub
    • Go to LNbits - Tipjar extension and create a new Tipjar. Select also the onchain option besides the LN wallet.
    • Optional - Go to LNbits - SatsPay extension and create a new charge for onchain btc. You can choose between onchain and LN or both. It will then create an invoice that can be shared.
    • Optional - If you use your LNbits linked to a Wordpress + Woocommerce page, once you create/link a watch-only wallet to your LN btc shop wallet, the customer will have both options to pay on the same screen.