LnurlFlip - An LNbits Extension
LnurlFlip creates a single LNURL that intelligently switches between payment and withdrawal modes based on the current balance. Share one QR code that can both receive payments when empty and allow withdrawals when funded.
- Payment Mode: When balance is below 50 sats, shows payment interface
- Withdrawal Mode: When balance is sufficient, shows withdrawal interface
- Automatic Switching: Mode changes dynamically based on real-time balance
- ✨ Single QR code for both payments and withdrawals
- 💬 Comment support for payments
- 📊 Transaction history and usage stats
- In LNbits, go to Server → Extensions → Extension Sources
- Add:
https://raw.githubusercontent.com/echennells/lnurlFlip/main/manifest.json - Enable the LnurlFlip extension
Before creating a flip link, you need:
-
LNURL Pay link (from LNURLp extension)
- Set your desired payment amount range
-
LNURL Withdraw link (from Withdraw extension)
- Set minimum and maximum withdrawal amounts
- Go to LnurlFlip extension
- Click "New LnurlFlip"
- Enter a name and select your wallet
- Choose your existing pay and withdraw links
- Click "Create LnurlFlip"
- Click the QR code icon next to your flip link
- Share the QR code or LNURL string
- The link automatically switches between payment and withdrawal modes