<p>For one new address type in electrum console:</p>

<pre><code>wallet.create_new_address(False)
</code></pre>

<p>For 100 new address type in electrum-console:</p>

<pre><code>for i in range(0, 100): print wallet.create_new_address(False)
</code></pre>

CC BY-SA 3.0
2017-07-06T17:50:02.373Z
2018-02-15T04:59:52.250Z
2018-02-15T04:59:52.250Z
Geograph
<p>I could be wrong here, but I believe Electrum 2.5.4 uses the gap limit like a buffer, where it will always generate that many additional addresses as you use up existing ones. In other words, you'll always have that many "available" addresses.</p>

<p>For example, if you start a new wallet, and your gap limit is 20 (which seems to be the default), once you receive your first transaction (on the first address), a new address will be derived for you from your seed to keep the number of "unused addresses" at 20.</p>

<p>Looks like the algorithm for this is here: <a href="https://github.com/spesmilo/electrum/blob/0dcaa13d314225826c40bf578e199adda1e5c23e/lib/wallet.py#L1551" rel="nofollow">https://github.com/spesmilo/electrum/blob/0dcaa13d314225826c40bf578e199adda1e5c23e/lib/wallet.py#L1551</a></p>

<p>And it looks like you can change this from the default via the command-line: <a href="https://github.com/spesmilo/electrum/blob/c86ef5e8b0dcebf1940a68e8857165e6e4768920/lib/commands.py#L638" rel="nofollow">https://github.com/spesmilo/electrum/blob/c86ef5e8b0dcebf1940a68e8857165e6e4768920/lib/commands.py#L638</a></p>

CC BY-SA 3.0
2015-11-16T15:21:15.323Z
2015-11-16T15:21:15.323Z
JJ Geewax
<p>There's no Expert Mode anymore. The Gap Limit has been hidden from the UI as it was unnecessarily complicated for normal users, and it is not a good method for merchants.</p>

<p>If you need to change the gap limit, enter this in the Console tab and restart the client (Tested with Electrum 3.0):
<code>
wallet.change_gap_limit(10)
wallet.storage.write()</code></p>

<p>To view/verify the current gap limit, type the follwing in the console:<br>
<code>wallet.gap_limit</code></p>

CC BY-SA 3.0
2015-11-03T11:38:17.527Z
Better would be the following: wallet.change_gap_limit(10)
torusJKL
CC BY-SA 3.0
2014-02-24T14:37:53.557Z
2018-01-08T09:51:31.323Z
2018-01-08T09:51:31.323Z
rdymac
<p>I cannot find any documentation or an option anywhere in the electrum client to put it into expert mode. I'm not even sure it can be done any longer, and it is important I raise the gap limit. It like chasing after a myth.</p>

<p>How do I put it in expert mode? Why has that been made so difficult? It seems against every principle of free software. </p>

CC BY-SA 3.0
2014-02-24T09:51:38.863Z
I have noticed I can run electrum --gap=15, but it isn't creating more addresses like I expected.
John Tate
CC BY-SA 3.0
2017-07-06T18:10:51.267Z
related: https://bitcoin.stackexchange.com/q/37739/5406
Murch
<electrum><address-generation><gap-limit>
More receive addresses with electrum
John Tate
# More receive addresses with electrum

(Asked by: username_0 on 2014-02-24)

I cannot find any documentation or an option anywhere in the electrum client to put it into expert mode. I'm not even sure it can be done any longer, and it is important I raise the gap limit. It like chasing after a myth.

How do I put it in expert mode? Why has that been made so difficult? It seems against every principle of free software.

**Tags:** electrum, address-generation, gap-limit

> **Comments:**
> **username_0**: I have noticed I can run electrum --gap=15, but it isn't creating more addresses like I expected.  
> **username_1**: related: https://bitcoin.stackexchange.com/q/37739/5406  

---

## 3 answers

### Answer by username_4 on 2014-02-24. Score: 15 | Accepted answer

There's no Expert Mode anymore. The Gap Limit has been hidden from the UI as it was unnecessarily complicated for normal users, and it is not a good method for merchants.

If you need to change the gap limit, enter this in the Console tab and restart the client (Tested with Electrum 3.0):
`wallet.change_gap_limit(10)
wallet.storage.write()`

To view/verify the current gap limit, type the follwing in the console:  
`wallet.gap_limit`

> **Comments:**
> **username_5**: Better would be the following: wallet.change_gap_limit(10)  

---

### Answer by username_2 on 2017-07-06. Score: 2

For one new address type in electrum console:
wallet.create_new_address(False)

For 100 new address type in electrum-console:
for i in range(0, 100): print wallet.create_new_address(False)


---

### Answer by username_3 on 2015-11-16. Score: 2

I could be wrong here, but I believe Electrum 2.5.4 uses the gap limit like a buffer, where it will always generate that many additional addresses as you use up existing ones. In other words, you'll always have that many "available" addresses.

For example, if you start a new wallet, and your gap limit is 20 (which seems to be the default), once you receive your first transaction (on the first address), a new address will be derived for you from your seed to keep the number of "unused addresses" at 20.

Looks like the algorithm for this is here: <https://github.com/spesmilo/electrum/blob/0dcaa13d314225826c40bf578e199adda1e5c23e/lib/wallet.py#L1551>

And it looks like you can change this from the default via the command-line: <https://github.com/spesmilo/electrum/blob/c86ef5e8b0dcebf1940a68e8857165e6e4768920/lib/commands.py#L638>


---

