I’d like to ask:
1️⃣ Is this method the correct way to bulk-generate addresses?
2️⃣ If not, is there any other official or recommended way to generate and export many receiving addresses at once?
3️⃣ Could this be related to the gap limit (unused address limit)?
[1] Yes, in the "
Console" tab (
View->Show Console), use the command:
[wallet.create_new_address(False) for i in range(980)]That'll derive 980 more receiving addresses past the already derived 20; derive 970 if you want to include the change addresses to the 1000 total.
[2] You may use the menu: "
Wallet->Private keys->Export" after using the command above and it'll export all of those keys in your preferred format.
[3] Yes, Electrum uses the commonly used gap limit of 20 for receiving addresses; then 10 change addresses.
Thus, that 30 addresses that you see.
BTW, since those are derived from a seed, make sure not to leak the seed or even the xpub from the offline machine in any way.