Connect multi-address Bitcoin wallets from a Crypto account
Upstream native PR #5674 · Upstream tracker.
Part 5 of 5 in the upstream Bitcoin wallet tracker. Base feat/bitcoin-wallet-publishing · Head feat/bitcoin-wallet-ui. Stacked on https://github.com/vlnd0/sure/pull/2. This diff contains the UI and documentation.
Problem and behaviour
People who track a Bitcoin wallet in an existing Crypto account need to see which addresses and how much BTC Sure found before changing the account. The account menu opens a watch-only setup dialog for an admin with Preview enabled and owner or full-control access to that account.
The dialog accepts a public Bitcoin address or a supported xpub/zpub, shows discovery progress and confirmed/pending BTC, and lets the user connect the wallet. The same dialog supports adding or removing a source, syncing and disconnecting. Other account activity remains available. Turning off Preview hides management while a connected wallet continues syncing.
Review scope
- Start with
BitcoinWalletsController, the account menu and the wallet dialog. Direct requests go through the same authorization checks as the visible controls. - The account and holding views distinguish a managed BTC position from other assets. Generic unlink sends the user through the wallet management flow. Translated copy covers all eight supported locales.
- Browser coverage exercises the account menu, polling without losing typed input, a narrow viewport, and retained holdings after disconnection. The existing single-address Bitcoin connection stays available during Preview.
- No migration is added in this layer.
Validation
- Rails suite on the rebased head passed with 18,680 tests, 114,281 assertions, 9 skips, zero failures or errors.
- Chromium system suite: 454 tests, 2548 assertions, 0 skips, zero failures or errors.
- RuboCop, full ERB lint, Biome and Brakeman passed.
Screenshots
Fixture wallet, shown before and after connection.

