Post
Topic
Board Electrum
Re: Electrum: How to generate many recipient addresses?
by
rabbitfairferry
on 22/12/2018, 05:44:12 UTC
You can use your watch-only (online) wallet to create addresses whenever you need them.

The master public key (xpub) is all what is needed to generate addresses. You don't need to access your offline wallet just to create new receiving addresses.


And to finally answer your question, you can generate X addresses by entering this command into the electrum console:

Code:
for i in range (X): print (wallet.create_new_address(False))


Obviously you have to replace X by the amount of addresses you want to generate.


For a single address:
Code:
print (wallet.create_new_address(False))

Also interested. If I create new addresses using your command, is there a possibility that I would generate similar addresses in the future? Just wondering if I should keep track of the addresses generated myself. Thank you.