Title: Command Line commands & Attributes Post by: jaimefcb on March 06, 2014, 08:33:31 AM Hello,
I´ve been testing some commands from this list but I´m getting some failures. https://github.com/spesmilo/electrum/blob/master/lib/commands.py I´m using Windows Electrum version and I would like to know how to use this two commands through command line console : importprivkey, getbalance Is there any chance to use that commands as attributes when launching the application? Can I access to that commands with an external Application (I´m developing an APP on VC#), a plugin maybe? Thanks and regards! Title: Re: Command Line commands & Attributes Post by: btcbot on March 06, 2014, 12:47:26 PM Hello, I´ve been testing some commands from this list but I´m getting some failures. https://github.com/spesmilo/electrum/blob/master/lib/commands.py I´m using Windows Electrum version and I would like to know how to use this two commands through command line console : importprivkey, getbalance Is there any chance to use that commands as attributes when launching the application? Can I access to that commands with an external Application (I´m developing an APP on VC#), a plugin maybe? Thanks and regards! These are Python function calls, you need to express them like this: >> getbalance() You should see this... { "confirmed": "yourbalance" } >> You need to wrap input data with quote marks, so to use importprivkey, you'll need to importprivkey(""). >> importprivkey("54j4i5j3lkj4j5i3jojogjgirirjrgijrigjoirjgorijg") Title: Re: Command Line commands & Attributes Post by: jaimefcb on March 06, 2014, 02:44:21 PM Thanks for your answer!
Which one are the Attributes that can be used for Electrum?? I´ve seen two of them -w (wallet) and -g (gui) but I don´t know if there are others... BR! Title: Re: Command Line commands & Attributes Post by: Abdussamad on March 07, 2014, 12:19:20 AM Thanks for your answer! Which one are the Attributes that can be used for Electrum?? I´ve seen two of them -w (wallet) and -g (gui) but I don´t know if there are others... BR! Not sure what you mean by attributes but if you want see all the electrum commands just type: electrum help in a command prompt. For command specific help type electrum help <command name> For example: electrum help restore The above instructions are for a recent version of electrum like 1.9.7. Older versions didn't expose command line options like these. Title: Re: Command Line commands & Attributes Post by: btcbot on March 07, 2014, 05:20:52 AM I think the OP was asking for either globals he could address from the console (gui.dosomething()) or flags from the command line?
Title: Re: Command Line commands & Attributes Post by: jaimefcb on March 07, 2014, 11:51:50 AM Hello, yes I´ve sound a little bit cryptical.
I mean Command Line Flags like this one: ./Electrum -w ~/path/to/your-new-wallet-file I would like to automate some tasks from an external app. Console is great, has all I need but I don´t know how can I send or use his commands from Electrum outside app. Thanks for your answers. Title: Re: Command Line commands & Attributes Post by: flatfly on March 07, 2014, 11:57:30 AM Hello, yes I´ve sound a little bit cryptical. I mean Command Line Flags like this one: ./Electrum -w ~/path/to/your-new-wallet-file I would like to automate some tasks from an external app. Console is great, has all I need but I don´t know how can I send or use his commands from Electrum outside app. Thanks for your answers. IIRC, Electrum 2.0 (out soon) will have a daemon mode, which should make this type of use much easier. |