Bitcoin Forum

Bitcoin => Electrum => Topic started by: escrow.ms on March 12, 2014, 11:49:15 PM



Title: Any way to generate more address?
Post by: escrow.ms on March 12, 2014, 11:49:15 PM
I Just started using lastest electrum version, I have 2 questions.

1. does it creates new address automatically?
2. Is there any way to generate 4-5 extra address?


Title: Re: Any way to generate more address?
Post by: btcven on March 13, 2014, 04:19:36 AM
1. Yes https://electrum.org/faq.html#gap-limit
2. user the search form


Title: Re: Any way to generate more address?
Post by: empoweoqwj on March 15, 2014, 01:42:03 PM
1. Yes https://electrum.org/faq.html#gap-limit
2. user the search form

The FAQ says "Electrum uses a gap limit to stop looking for addresses, it is set to 5 by default, so the client get all addresses until 5 unused addresses are found."

It doesn't say HOW-TO actually increase the number of addresses.

Anyone?


Title: Re: Any way to generate more address?
Post by: dabura667 on March 17, 2014, 07:00:41 PM
1. Yes https://electrum.org/faq.html#gap-limit
2. user the search form

The FAQ says "Electrum uses a gap limit to stop looking for addresses, it is set to 5 by default, so the client get all addresses until 5 unused addresses are found."

It doesn't say HOW-TO actually increase the number of addresses.

Anyone?

1. open console tab

2. type in "wallet.storage.put('gap_limit',x)" without quotes around it, and replace x with the number of addresses you want it to create for unused addresses. (ie. if you have 5 unused addresses now, and you want to make 3 more, set it to 8. From then on, every time you use an address, it will create a new one so that you always have 8 unused addresses showing.)

CAUTION: The way that Electrum works is to search for the balance in all addresses within the gap limit, so if you set the gap limit to 500, and use the 500th address to store bitcoin, you will have to set your gap limit to at least 500 every time you restore your seed, otherwise Electrum won't "see" your 500th address correctly. Because this is impractical, please use addresses in your Electrum wallet in the order that they were generated, and try not to increase your gap limit too high, as it will be cause for confusion in the future if you ever have to restore the wallet from seed.


Title: Re: Any way to generate more address?
Post by: jbrnt on March 17, 2014, 07:41:43 PM
1. open console tab

2. type in "wallet.storage.put('gap_limit',x)" without quotes around it, and replace x with the number of addresses you want it to create for unused addresses.

3. Close electrum and start it again. New addresses will not appear until after you restart


Title: Re: Any way to generate more address?
Post by: fireduck on March 20, 2014, 10:31:05 PM
I Just started using lastest electrum version, I have 2 questions.

1. does it creates new address automatically?
2. Is there any way to generate 4-5 extra address?

You can generate more addresses outside of the electrum client if you want using the master public key.

Check out my web based address generator:
http://1209k.com/addrgen/

If you want a library that does it, (which is the one I use for that page):
https://github.com/prusnak/addrgen

I've found it very useful to be able to get new fresh addresses without opening up the client, especially for automation.


Title: Re: Any way to generate more address?
Post by: saif92 on March 20, 2014, 10:36:49 PM
I am also using now electrum and thinking about new addresses its very helpful thanks for all this