Author

Topic: Running Electrum through the WINDOWS command prompt (Read 1315 times)

legendary
Activity: 1568
Merit: 1031
first write the seed down just in case. then download the latest windows installer version from electrum.org and run it. the new version will pick up your wallet just fine and you won't need to restore anything from seed.

then try `electrum.exe help`.

I couldn't do that until now so sorry for the delay in the answer. I tried what you mentioned and It's still not working , I will contact Thomas and see If he could help me out.


This may not be so relevant to your questions but there is a Console tab when you open Electrum where you can type in commands such as help() which brings up the list of all commands you can use:

Quote
List of commands: check_seed, contacts, create, createmultisig, createrawtransaction, decoderawtransaction, decrypt, deseed, dumpprivkeys, encrypt, freeze, getaddressbalance, getaddresshistory, getaddressunspent, getbalance, getconfig, getmpk, getprivatekeys, getproof, getpubkeys, getrawtransaction, getseed, getservers, getutxoaddress, getversion, help, history, importprivkey, ismine, listaddresses, listunspent, make_seed, mksendmanytx, mktx, password, payto, paytomany, restore, searchcontacts, sendrawtransaction, setconfig, setlabel, signmessage, signtxwithkey, signtxwithwallet, sweep, unfreeze, validateaddress, verifymessage

and then you can use each of these inside that Console.

I tried that as well but I'm getting SyntaxError: invalid syntax each time I write something on the console tab . (I tried different combinations like I did with command lines)



The syntax error is pretty trivial... Don't try to  execute "listunspent". Execute "listunspent()" instead Wink

That's not valid for all commands , If I type "listaddresses" without the () I get this error 'listaddresses' is a function. Type 'listaddresses()' to use it in the Python console. but when I type help with or without the () , It's not working at all and gives me
Traceback (most recent call last): NameError: name 'help' is not defined , If I write "electrum" before it then It gives me syntax error
hero member
Activity: 896
Merit: 1006
first write the seed down just in case. then download the latest windows installer version from electrum.org and run it. the new version will pick up your wallet just fine and you won't need to restore anything from seed.

then try `electrum.exe help`.

I couldn't do that until now so sorry for the delay in the answer. I tried what you mentioned and It's still not working , I will contact Thomas and see If he could help me out.


This may not be so relevant to your questions but there is a Console tab when you open Electrum where you can type in commands such as help() which brings up the list of all commands you can use:

Quote
List of commands: check_seed, contacts, create, createmultisig, createrawtransaction, decoderawtransaction, decrypt, deseed, dumpprivkeys, encrypt, freeze, getaddressbalance, getaddresshistory, getaddressunspent, getbalance, getconfig, getmpk, getprivatekeys, getproof, getpubkeys, getrawtransaction, getseed, getservers, getutxoaddress, getversion, help, history, importprivkey, ismine, listaddresses, listunspent, make_seed, mksendmanytx, mktx, password, payto, paytomany, restore, searchcontacts, sendrawtransaction, setconfig, setlabel, signmessage, signtxwithkey, signtxwithwallet, sweep, unfreeze, validateaddress, verifymessage

and then you can use each of these inside that Console.

I tried that as well but I'm getting SyntaxError: invalid syntax each time I write something on the console tab . (I tried different combinations like I did with command lines)



The syntax error is pretty trivial... Don't try to  execute "listunspent". Execute "listunspent()" instead Wink
legendary
Activity: 1568
Merit: 1031
first write the seed down just in case. then download the latest windows installer version from electrum.org and run it. the new version will pick up your wallet just fine and you won't need to restore anything from seed.

then try `electrum.exe help`.

I couldn't do that until now so sorry for the delay in the answer. I tried what you mentioned and It's still not working , I will contact Thomas and see If he could help me out.


This may not be so relevant to your questions but there is a Console tab when you open Electrum where you can type in commands such as help() which brings up the list of all commands you can use:

Quote
List of commands: check_seed, contacts, create, createmultisig, createrawtransaction, decoderawtransaction, decrypt, deseed, dumpprivkeys, encrypt, freeze, getaddressbalance, getaddresshistory, getaddressunspent, getbalance, getconfig, getmpk, getprivatekeys, getproof, getpubkeys, getrawtransaction, getseed, getservers, getutxoaddress, getversion, help, history, importprivkey, ismine, listaddresses, listunspent, make_seed, mksendmanytx, mktx, password, payto, paytomany, restore, searchcontacts, sendrawtransaction, setconfig, setlabel, signmessage, signtxwithkey, signtxwithwallet, sweep, unfreeze, validateaddress, verifymessage

and then you can use each of these inside that Console.

I tried that as well but I'm getting SyntaxError: invalid syntax each time I write something on the console tab . (I tried different combinations like I did with command lines)

legendary
Activity: 1040
Merit: 2785
Bitcoin and C♯ Enthusiast
This may not be so relevant to your questions but there is a Console tab when you open Electrum where you can type in commands such as help() which brings up the list of all commands you can use:

Quote
List of commands: check_seed, contacts, create, createmultisig, createrawtransaction, decoderawtransaction, decrypt, deseed, dumpprivkeys, encrypt, freeze, getaddressbalance, getaddresshistory, getaddressunspent, getbalance, getconfig, getmpk, getprivatekeys, getproof, getpubkeys, getrawtransaction, getseed, getservers, getutxoaddress, getversion, help, history, importprivkey, ismine, listaddresses, listunspent, make_seed, mksendmanytx, mktx, password, payto, paytomany, restore, searchcontacts, sendrawtransaction, setconfig, setlabel, signmessage, signtxwithkey, signtxwithwallet, sweep, unfreeze, validateaddress, verifymessage

and then you can use each of these inside that Console.
legendary
Activity: 3682
Merit: 1580
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.

that is an old thread so i don't think its relevant today.

try "electrum.exe help" just in case that does it.



I tried that (my wallet has the version in the name) and It didn't work , I also tried to launch it from the path like this ‪C:\Users\admin\Desktop\electrum-2.5.4.exe help and It didn't work either , have you tried it your self at least?

No I haven't tried it since I don't use Windows myself. Sorry if I led you on a wild goose chase. That was not my intention. I just found it difficult to believe that there would be a CLI on linux and mac versions and not on the far more widely used Windows version.

BTW wouldn't the electrum .exe file be somewhere in program files? that is where programs are installed in Windows right? Also 2.5.4 is very old. You should install the latest 2.7.11 version.



It's not in program files because I took the Standalone version and not the Windows installer , so I only have the executable (of 25 MB) on my Desktop and the other files (generated by the executable) on the AppData folder and yes the program files is where  the programs should be. I didn't upgrade because I was afraid I screw things up as I'm not sure how to upgrade without using the seed (If that's even possible)

first write the seed down just in case. then download the latest windows installer version from electrum.org and run it. the new version will pick up your wallet just fine and you won't need to restore anything from seed.

then try `electrum.exe help`.
legendary
Activity: 1568
Merit: 1031
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.

that is an old thread so i don't think its relevant today.

try "electrum.exe help" just in case that does it.



I tried that (my wallet has the version in the name) and It didn't work , I also tried to launch it from the path like this ‪C:\Users\admin\Desktop\electrum-2.5.4.exe help and It didn't work either , have you tried it your self at least?

No I haven't tried it since I don't use Windows myself. Sorry if I led you on a wild goose chase. That was not my intention. I just found it difficult to believe that there would be a CLI on linux and mac versions and not on the far more widely used Windows version.

BTW wouldn't the electrum .exe file be somewhere in program files? that is where programs are installed in Windows right? Also 2.5.4 is very old. You should install the latest 2.7.11 version.



It's not in program files because I took the Standalone version and not the Windows installer , so I only have the executable (of 25 MB) on my Desktop and the other files (generated by the executable) on the AppData folder and yes the program files is where  the programs should be. I didn't upgrade because I was afraid I screw things up as I'm not sure how to upgrade without using the seed (If that's even possible)
legendary
Activity: 3682
Merit: 1580
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.

that is an old thread so i don't think its relevant today.

try "electrum.exe help" just in case that does it.



I tried that (my wallet has the version in the name) and It didn't work , I also tried to launch it from the path like this ‪C:\Users\admin\Desktop\electrum-2.5.4.exe help and It didn't work either , have you tried it your self at least?

No I haven't tried it since I don't use Windows myself. Sorry if I led you on a wild goose chase. That was not my intention. I just found it difficult to believe that there would be a CLI on linux and mac versions and not on the far more widely used Windows version.

BTW wouldn't the electrum .exe file be somewhere in program files? that is where programs are installed in Windows right? Also 2.5.4 is very old. You should install the latest 2.7.11 version.

legendary
Activity: 1568
Merit: 1031
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.

that is an old thread so i don't think its relevant today.

try "electrum.exe help" just in case that does it.



I tried that (my wallet has the version in the name) and It didn't work , I also tried to launch it from the path like this ‪C:\Users\admin\Desktop\electrum-2.5.4.exe help and It didn't work either , have you tried it your self at least?
hero member
Activity: 896
Merit: 1006
thank you for your reply, but I have a "electrum is not a command ...." response
I am in electrum directory
is there no step by step tutorial for explain how to  set it?

I search everywhere but don't find it...

the electrum program folder isn't in your path... This basically means you have to open a command prompt and go to the correct folder where electrum.exe is located, only then you can execute the command (or maybe the electrum binary isn't electrum.exe but electrum-2.x.x.exe... In this case you need to execute electrum-2.x.x instead of electrum).
Since i use the portable version, i don't know where this folder is located, but it's probably something like c:\program files\electrum\

The point is moot tough... Like many have already suggested, it seems like cli arguments were removed, i just tried some of the arguments i found here; http://docs.electrum.org/en/latest/cmdline.html on electrum 2.7.8 portable on windows 7, and nothing happened. I could try this on my linux distro when i get home in case somebody is interested.
legendary
Activity: 3682
Merit: 1580
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.

that is an old thread so i don't think its relevant today.

try "electrum.exe help" just in case that does it.

legendary
Activity: 1568
Merit: 1031
According to this post from 2013 It seems like Electrum had Command lines available for Windows but got disabled after sometime so It's only available for Mac & Linux right now. Just to make sure , I tried too and It didn't work either.
jr. member
Activity: 51
Merit: 2
thank you for your reply, but I have a "electrum is not a command ...." response
I am in electrum directory
is there no step by step tutorial for explain how to  set it?

I search everywhere but don't find it...
legendary
Activity: 3682
Merit: 1580
run `electrum help` to see the command line options.
jr. member
Activity: 51
Merit: 2
HI

I know this question was certainly still submitted but I can't find simply and clearly how to set up Electrum to be controlable through the Windows command prompt?

thank you for your help and answer
Jump to: