Skip to content

Conversation

@keshav0479
Copy link

@keshav0479 keshav0479 commented Jan 3, 2026

Fixes #2993

Problem

Previously, the "Receive" screen only displayed a Lightning Address QR code for Alby OAuth accounts. Blink (Galoy) wallets did not show a QR code because the lightningAddress was:

  1. Not returned by the Galoy connector during setup.
  2. Not persisted to IndexedDB in the add action.
  3. Not exposed to the frontend via the info API endpoint.

Visual Comparison

Before Fix (Blink Wallet) After Fix (Blink Wallet)
Before Fix After Fix
No QR code displayed Lightning Address QR code is visible

Solution

This PR implements a full-stack fix to persist and display the address for Galoy accounts:

Backend / Connector

  • src/types.ts: Extended Account interface to include lightningAddress.
  • galoy.ts: Updated getInfo() to correctly derive the address (e.g., [email protected]) from the username and globals.
  • add.ts: Updated account creation logic to fetch connector.getInfo() and persist the lightningAddress to storage immediately.
  • info.ts: Updated the account info endpoint to bubble up the lightningAddress to the UI API response.

Frontend

  • Receive/index.tsx: Removed the strict isAlbyOAuthUser check. The component now displays the QR code for any account that has a valid lightningAddress available.

Testing

  • Verified that adding a new Blink wallet correctly saves the address to IndexedDB and Sync Storage.
  • Verified that the Receive screen displays the QR code immediately after creation.
  • Verified that refreshing the extension does not overwrite or lose the address data.

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.

[BUG] Receive window when connected to Blink wallet doesn't show the lightning address qrcode

1 participant