Bitcoin Forum
January 07, 2026, 07:20:42 AM *
News: Latest Bitcoin Core release: 30.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum 4.6.1 (offline): Tried to pre-generate 1000 receiving addresses but onl  (Read 188 times)
jedlee (OP)
Newbie
*
Offline Offline

Activity: 16
Merit: 5


View Profile
October 07, 2025, 02:44:54 AM
 #1

Environment: Windows; Electrum 4.6.1; Standard wallet (SegWit/bech32, bc1…); offline computer.
Goal: I want to pre-generate and export around 1000 receiving addresses for offline use and website import (addresses only, no xpub exposure).

I followed tutorials and ran the bulk generation process, then restarted Electrum, but the “Addresses → Receiving” tab still only shows around 30 addresses. No error messages appeared.

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)?

I can provide screenshots of the console and addresses page.
Thanks in advance for your help! 🙏
rat03gopoh
Hero Member
*****
Offline Offline

Activity: 2534
Merit: 908


Betpanda.io Casino


View Profile WWW
October 07, 2025, 04:25:50 AM
 #2

1. Yes
2. I don't know, I've never wanted to display that many addresses with Electrum.
3. Yeah, the usual GUI won’t necessarily show thousands because of Electrum's address-discovery/gap behavior[*].

[*] https://bitcoin.stackexchange.com/posts/35557/revisions


.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
nc50lc
Legendary
*
Offline Offline

Activity: 3010
Merit: 8213


Self-proclaimed Genius


View Profile
October 07, 2025, 04:59:09 AM
Merited by ABCbits (3), Pmalek (3), hosemary (1), mcdouglasx (1)
 #3

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.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
pooya87
Legendary
*
Offline Offline

Activity: 4046
Merit: 12158



View Profile
October 07, 2025, 05:40:45 AM
 #4

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?
It depends on the reason why you are generating large amounts of addresses all at once (what are they used for). I'd say the easiest way to generate a large number of addresses is using a library (BIP-39 or Electrum implementation) to simply derive n number of keys/addresses in a simple loop.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Pmalek
Legendary
*
Offline Offline

Activity: 3360
Merit: 8917



View Profile
October 07, 2025, 06:58:58 AM
 #5

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.
Won't generating that many receiving addresses in Electrum cause the software to freeze or even crash? There was always talk about Electrum not being as suitable for such tasks as Bitcoin Core for example. What is the upper limit for generated addresses and gap limit increase before Electrum starts failing?

██████████████████████████████████████████████████████████████████████
████████▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄████████▄▄▄▄▄▄▄███▄▄▄▄▄▄▄▄▄████████████████████
███████▄██▀▀▀▀▀▀▀▀▀▀▀██▄▄▄▄▄▄▄▄███████▄▄▄██▀▀▀▀▀██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄████
███████
█▄▄▄▄▄▄▄▄▄▄████▀▀▀▀██▀▀▄▄██▀██▀▀▀███████▀▀▀█▀▀▀▀▀▀▀▀▀▀████
███████
▀█
█████▀▀▀▀█████████████████▀█████████▀██▄██▄▄▄▄▄█████████
███████
▄█
███▄▄▄▄▄▄▄██████████████████████▀▀██▄███████▀████▀████
██████
▄█
██████████████████████████▄██████████████████▀████▀██████
█████
▄█
██████▀▀▀████████████████████████████████▀█████████████
████
▄█
██████▀█████████████████████████████████▀███▀▀▀▀▀█▄██████
████
▄████▀████▀███████████████████████████▀██████████████████████
████
▀█
███▀▀▀██████▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█████████████▀██████
█████
▀▀▀▀█████████████████████████████████████████▀▀▀▀▀▀▀▀▀▀▀▀▀
███████
██████████████████████████████████████████████████████████████████████
.
.. SPORTSBOOK..NEW..
.
..100% WELCOME BONUS │ NO KYC │ UP TO 15% CASHBACK....PLAY NOW...
nc50lc
Legendary
*
Offline Offline

Activity: 3010
Merit: 8213


Self-proclaimed Genius


View Profile
October 07, 2025, 01:07:29 PM
 #6

Yes, in the "Console" tab (View->Show Console), use the command: [wallet.create_new_address(False) for i in range(980)]
Won't generating that many receiving addresses in Electrum cause the software to freeze or even crash?
1000~10000 addresses is easy enough, I've even tested that before at least on a mid-range hardware.
But for the upper-limit, I haven't done some benchmarking but some threads report that their client freezes at 50,000 addresses even with high-end hardware.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
gunrose2003
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
October 09, 2025, 02:09:56 PM
 #7

What do you mean"client freezes at 50,000 addresses"? the account of electrum desktop software is unavailable?
pooya87
Legendary
*
Offline Offline

Activity: 4046
Merit: 12158



View Profile
October 10, 2025, 05:05:19 AM
 #8

What do you mean"client freezes at 50,000 addresses"? the account of electrum desktop software is unavailable?
Electrum software and its user interface is not designed in the way to hold and show a very large number of addresses, therefore when the address count grows past a certain threshold it starts becoming slower as it consumes more of your PC resources and eventually it hangs/freezes after it can't process them any longer.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline Offline

Activity: 3010
Merit: 8213


Self-proclaimed Genius


View Profile
October 10, 2025, 05:16:55 AM
 #9

What do you mean"client freezes at 50,000 addresses"? the account of electrum desktop software is unavailable?
I see that there's a misconception here that Electrum is like a bank "account", it's not.
There's no central server that can freeze your bitcoins in Electrum.

Take note that Electrum is a "self-custodial wallet" where it stores master extended private/public key and its derived addresses in its keystore rather than relying on user accounts.
And when the number of addresses became too much for a light-weight client like Electrum to handle, its GUI (Graphical User Interface) could freeze a.k.a. become unresponsive.

Take this thread for example: /index.php?topic=5534267.0

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
hosemary
Legendary
*
Offline Offline

Activity: 2996
Merit: 6807



View Profile
October 10, 2025, 05:28:52 AM
 #10

But for the upper-limit, I haven't done some benchmarking but some threads report that their client freezes at 50,000 addresses even with high-end hardware.
Correct me if I am wrong, please.

Elecrum would freeze when trying to get the balance and transaction history from the servers.
Since OP wants to generate addressses on an offline device, electrum would still work fine, even if he wanted to generate 50,000 addresses.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline Offline

Activity: 3010
Merit: 8213


Self-proclaimed Genius


View Profile
October 10, 2025, 05:56:47 AM
Merited by ABCbits (1), hosemary (1)
 #11

Elecrum would freeze when trying to get the balance and transaction history from the servers.
Since OP wants to generate addressses on an offline device, electrum would still work fine, even if he wanted to generate 50,000 addresses.
Those reports that I mentioned said that it would freeze for hours just by checking the addresses tab, syncing the wallet isn't mentioned.
Depends on the person's machine and Electrum's version perhaps. Remember that I didn't specified a specific limit since I haven't done any benchmarks.

High-end machines may not freeze at 10x or more that amount.
My machine can handle as much as 300,000 addresses but Electrum is laggy when opening the wallet or checking the addresses.
Offline of course.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
damiankopacz87
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
October 28, 2025, 09:07:00 AM
Last edit: October 28, 2025, 09:24:47 AM by damiankopacz87
 #12

Hi,

Do You guys know how to generate in Electrum small amount of addresses but from specific derivation range eg   .../0/0/122345-122355? Is thera comand for that? Increasing gap limit to such a value will freez software, as You said. Is there any other way to get addreses from such a specific place?


Edit:

Got it!

[wallet.create_new_address(False) for i in range(122345, 122355)] work for that purpose.


Best Regards
Damian
SilverCryptoBullet
Full Member
***
Offline Offline

Activity: 910
Merit: 214



View Profile
October 30, 2025, 02:46:06 AM
Last edit: October 30, 2025, 02:58:50 AM by SilverCryptoBullet
 #13

Do You guys know how to generate in Electrum small amount of addresses but from specific derivation range eg   .../0/0/122345-122355? Is thera comand for that? Increasing gap limit to such a value will freez software, as You said. Is there any other way to get addreses from such a specific place?
Increasing the gap and creating massive private keys and addresses in such a SPV wallet software like Electrum can freeze the software and I really don't know reason of needing creation step at all.

If you want more addresses, why don't consider of creating a completely new wallet and don't have a wallet software freeze?
It's more easily and don't create unnecessary abundantly overload task on your computer too.

[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.
This command does not change the gap limit parameter.

Quote
[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.
The gap limit parameter can be change by using this following command for changing it to 50.
Code:
wallet.change_gap_limit(50)
If you need to check the wallet current gap limit, use this.
Code:
wallet.gap_limit

https://electrum.readthedocs.io/en/latest/faq.html#gap-limit

nc50lc
Legendary
*
Offline Offline

Activity: 3010
Merit: 8213


Self-proclaimed Genius


View Profile
October 30, 2025, 04:34:49 AM
 #14

[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.
This command does not change the gap limit parameter.
Yes, but the query isn't about increasing the gap limit but to pre-generate 1000 addresses to be exported.
For that, pre-generating the required amount of addresses is preferred instead of telling Electrum to "always generate to keep 1000 unused addresses on top of the last used one".

OP may be running an XY problem here though since he could've just used the extended public key in his website.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!