Skip to content

New Feature: Wallet Mode #34

@X-Hades-X

Description

@X-Hades-X

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.

image
image
image
image
image

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

    1. User chooses if he wants to pay or recieve on the first screen
    2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions