Bitcoin Forum

Bitcoin => Electrum => Topic started by: azteca on April 14, 2016, 01:31:29 PM



Title: console in text, stdio mode
Post by: azteca on April 14, 2016, 01:31:29 PM
Im interesting how can I use console command in text, stdio mode , like in GUI mode? for example I want generate new addresses in text mode, is it possible?


Title: Re: console in text, stdio mode
Post by: torusJKL on April 16, 2016, 03:59:37 PM
Addresses are automatically created once you used an existing one.
I don't think there is a dedicated command to create a new address (neither in the GUI nor the CLI)

You could use
Code:
electrum listaddresses
to show a list of your wallet addresses.

You can see all the available command line options if you type
Code:
electrum --help
to show a list of commands

And if you want to get more information about a specific command you could for example use
Code:
electrum listaddresses help


Title: Re: console in text, stdio mode
Post by: azteca on April 17, 2016, 04:25:53 PM
In GUI Console I can generate new addresses as I need-
http://docs.electrum.org/en/latest/faq.html#how-can-i-pre-generate-new-addresses
------------------
for x in range(0, 50):
     print wallet.create_new_address()
---------------------------
as well I can run other command

but if I using -g text, stdio mode, it's not clear to me how run  commands like this?

Probably it's possible to do in python console or script using electrum python module