Post
Topic
Board Electrum
Re: Command Line commands & Attributes
by
btcbot
on 06/03/2014, 12:47:26 UTC
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")