Gap
bitcoin-core/gui#872 added an Export watch-only wallet action for creating a public-data copy of an existing descriptor wallet for an air-gapped setup. It mirrors the exportwatchonlywallet RPC added by bitcoin/bitcoin#32489.
The QML app supports ordinary wallet backup and restore, but it does not expose this distinct watch-only export flow.
Work
- Expose the merged wallet export interface through
WalletQmlModel once the vendored Bitcoin Core source includes it.
- Add an Export watch-only wallet action to Wallet settings without depending on Qt Widgets code.
- Use a save-file dialog and report clear success, cancellation, and backend failure states.
- Only offer the action when the selected wallet can produce an export; do not offer it for a wallet that already has private keys disabled.
- Ensure the exported wallet file can be loaded through the existing QML restore-wallet flow.
- Add model, QML, and functional coverage for the export and restore path.
Acceptance criteria
- A user can select a descriptor wallet with private keys and export a watch-only wallet file.
- The exported file contains no private keys and retains the public wallet state provided by the Core export API, including descriptors, labels, transactions, and applicable wallet flags.
- Restoring the exported file through the QML app loads it as a watch-only/private-key-disabled wallet.
- Cancellation does not start an export, and backend failures are shown without reporting success.
- The action is unavailable for wallets that cannot be exported, including already-watch-only wallets.
References
Gap
bitcoin-core/gui#872 added an Export watch-only wallet action for creating a public-data copy of an existing descriptor wallet for an air-gapped setup. It mirrors the
exportwatchonlywalletRPC added by bitcoin/bitcoin#32489.The QML app supports ordinary wallet backup and restore, but it does not expose this distinct watch-only export flow.
Work
WalletQmlModelonce the vendored Bitcoin Core source includes it.Acceptance criteria
References
exportwatchonlywalletRPC to export a watchonly version of a wallet bitcoin/bitcoin#32489