Add as new argument (empty) to createwallet to create an empty wallet.
This can be followed by sethdseed to create a clean wallet with a custom seed.
Followup PRs can make this significantly more useful, e.g.
- #15006 adds a password argument to
createwallet TopUpKeyPool()should look for imported keys- allow import of a receive and change descriptor with private keys, which also sets the hd seed (custom BIP32 derivation paths, limiting the address type at the wallet level)
TopUpKeyPool()should look for public keys (ifWALLET_FLAG_DISABLE_PRIVATE_KEYSis set)