I figured it would be cool to have the ability to set an amount in the App if scanning an LN-Address. With this capability it was then just a bit more work to implement a full wallet mode. The User can scan his Bolt Card and use the LNURLw and LNURLp that can be requested from the Service as Pay/Recieve of a temporary Wallet.





You can find my implementation on my main branch https://github.com/X-Hades-X/boltcard-tools-terminal/tree/main
What already works:
- Scanning of LNURLs and LN-Addresses with no specific amount -> Loaded as "Recieving only" Wallet (it is somehow confusing UX for now)
- Scanning of the Bolt Card to open a temporary Wallet
- Choosing a currency and calculating the Sat amount according to the exchange rate
- Floating point number for amounts in Fiat or BTC (SATs are Integer, are there currencies without cents? does it matter?)
Future improvements:
-
Splitting the Wallet into two screens
- User chooses if he wants to pay or recieve on the first screen
- Amount with limits is entered on a second screen
If a LN-Address or LNURLp is scanned the screen would show only the Address/Description and a "Pay" Button
else a Bolt Card is scanned and it shows the Description from the Bolt Card, a "Pay" and "Recieve" Button
-
Using the same "Invoice" Screen for Pay/Recieve (adding a title to the screen to differentiate)
-
Supporting BTC Address without specified amount (for swap)
I figured it would be cool to have the ability to set an amount in the App if scanning an LN-Address. With this capability it was then just a bit more work to implement a full wallet mode. The User can scan his Bolt Card and use the LNURLw and LNURLp that can be requested from the Service as Pay/Recieve of a temporary Wallet.
You can find my implementation on my main branch https://github.com/X-Hades-X/boltcard-tools-terminal/tree/main
What already works:
Future improvements:
Splitting the Wallet into two screens
If a LN-Address or LNURLp is scanned the screen would show only the Address/Description and a "Pay" Button
else a Bolt Card is scanned and it shows the Description from the Bolt Card, a "Pay" and "Recieve" Button
Using the same "Invoice" Screen for Pay/Recieve (adding a title to the screen to differentiate)
Supporting BTC Address without specified amount (for swap)