Watch-only wallet wizard: collect descriptor metadata #735

Open
opened 2026-05-29 18:01:29 +00:00 by pseudoramdom · 0 comments
pseudoramdom commented 2026-05-29 18:01:29 +00:00 (Migrated from github.com)

The current createWatchOnlyWallet flow hardcodes every field of the WalletDescriptor constructor and the descriptor template itself

What the wizard needs to collect

  • Wallet birthday / start date — a date picker; drives
    WalletDescriptor::timestamp and therefore the rescan window. Default to today with a callout that this means no history.
  • Address / script type — at minimum BECH32 (wpkh), BECH32m / taproot (tr), nested segwit (sh(wpkh(...))), legacy (pkh). Drives both the descriptor template and the OutputType passed to AddActiveScriptPubKeyMan.
  • Derivation path — beyond the implicit /0/* and /1/*, users may want to pick an account index, or paste a full descriptor and skip the xpub form entirely.
  • Gap limit (range_end) — optional advanced field for wallets with non-default usage

Originally posted by @johnny9 in https://github.com/bitcoin-core/gui-qml/pull/727#discussion_r3308345139

The current `createWatchOnlyWallet` flow hardcodes every field of the `WalletDescriptor` constructor and the descriptor template itself ## What the wizard needs to collect - **Wallet birthday / start date** — a date picker; drives `WalletDescriptor::timestamp` and therefore the rescan window. Default to today with a callout that this means no history. - **Address / script type** — at minimum BECH32 (`wpkh`), BECH32m / taproot (`tr`), nested segwit (`sh(wpkh(...))`), legacy (`pkh`). Drives both the descriptor template and the `OutputType` passed to `AddActiveScriptPubKeyMan`. - **Derivation path** — beyond the implicit `/0/*` and `/1/*`, users may want to pick an account index, or paste a full descriptor and skip the xpub form entirely. - **Gap limit (`range_end`)** — optional advanced field for wallets with non-default usage _Originally posted by @johnny9 in https://github.com/bitcoin-core/gui-qml/pull/727#discussion_r3308345139_
Sign in to join this conversation.
No description provided.