Skip to content

feat(lnurl): render bech32 LNURLs in note content as payable cards#414

Open
dmnyc wants to merge 1 commit into
mainfrom
feat/lnurl-payable-cards
Open

feat(lnurl): render bech32 LNURLs in note content as payable cards#414
dmnyc wants to merge 1 commit into
mainfrom
feat/lnurl-payable-cards

Conversation

@dmnyc

@dmnyc dmnyc commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Detects a bare lnurl1… bech32-encoded token in note content and renders it as a tappable payment card instead of leaving it as plain text
  • Card shows the resolved domain plus Copy / Pay actions, matching the existing lightning-invoice and lightning-address card styles
  • WalletStore.detectInputType and LnurlResolver.resolve already handle lnurl1… strings via the existing LNURL-pay flow, so Pay routes straight into the normal send sheet
  • Test note: nevent1qqs9pdpv0j4wsnzrrser4h8ahejw38vxj3qtxnvzj6avsm9erpyxc6spp4mhxue69uhkummn9ekx7mqpz4mhxue69uhkummnw3ex2mrfw3jhxtn0wfnsygzfc9y74uer5h87484azmk62pt4fpy9za04mhpq47djurf5f9x0ys809v2e — a note whose content contains a bare LNURL1… string

Screenshots

Before After After
before after-1 after-2

Test plan

  • Builds clean on current main
  • Installed and launched on simulator
  • Paste a note containing a bare lnurl1… string and confirm it renders as a payable card
  • Tap Pay and confirm it opens the send sheet with the LNURL pre-filled and resolves to an amount-entry flow
  • Tap Copy and confirm the raw lnurl1… string is copied to the clipboard

Detects a bare lnurl1... token in note content and renders it as a
tappable payment card (matching the lightning-invoice / lightning-
address card styles) instead of leaving it as plain text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant