Bitcoin Forum

Bitcoin => Electrum => Topic started by: Vadi2323 on March 11, 2016, 07:41:58 AM



Title: Startup parameters for Electrum?
Post by: Vadi2323 on March 11, 2016, 07:41:58 AM
What are the startup parameters for Electrum? I only know -w:
Code:
-w D:\bitcoin\electrum.dat

Are there any more?


Title: Re: Startup parameters for Electrum?
Post by: shsmith on March 12, 2016, 03:25:04 PM
There are lots of parameters. 
Use electrum --help to get a list. 

Here it is:

Code:
$ electrum --help
usage: electrum [-h] [-v] [-P] [-w WALLET_PATH] <command> ...

positional arguments:
  <command>
    gui                 Run GUI (default)
    daemon              Run Daemon
    addrequest          Create a payment request
    broadcast           Broadcast a transaction to the network
    check_seed          Check that a seed was generated with given entropy
    clearrequests       Remove all payment requests
    commands            List of commands
    create              Create a new wallet
    createmultisig      Create multisig address
    createrawtx         Create a transaction from json inputs
    decrypt             Decrypt a message encrypted with a public key
    deseed              Remove seed from wallet
    deserialize         Deserialize a serialized transaction
    dumpprivkeys        Deprecated
    encrypt             Encrypt a message with a public key
    freeze              Freeze address
    getaddressbalance   Return the balance of any address
    getaddresshistory   Return the transaction history of any address
    getaddressunspent   Returns the UTXO list of any address
    getalias            Retrieve alias
    getbalance          Return the balance of your wallet
    getconfig           Return a configuration variable
    getmasterprivate    Get master private key
    getmerkle           Get Merkle branch of a transaction included in a block
    getmpk              Get master public key
    getprivatekeys      Get private keys of addresses
    getproof            Get Merkle branch of an address in the UTXO set
    getpubkeys          Return the public keys for a wallet address
    getrequest          Return a payment request
    getseed             Get seed phrase
    getservers          Return the list of available servers
    gettransaction      Retrieve a transaction
    getutxoaddress      Get the address of a UTXO
    help
    history             Wallet history
    importprivkey       Import a private key
    ismine              Check if address is in wallet
    listaddresses       List wallet addresses
    listcontacts        Show your list of contacts
    listrequests        List the payment requests you made
    listunspent         List unspent outputs
    make_seed           Create a seed
    notify              Watch an address
    password            Change wallet password
    payto               Create a transaction
    paytomany           Create a multi-output transaction
    restore             Restore a wallet from text
    rmrequest           Remove a payment request
    searchcontacts      Search through contacts, return matching entries
    setconfig           Set a configuration variable
    setlabel            Assign a label to an item
    signmessage         Sign a message with a key
    signrequest         Sign payment request with an OpenAlias
    signtransaction     Sign a transaction
    sweep               Sweep private keys
    unfreeze            Unfreeze address
    validateaddress     Check that an address is valid
    verifymessage       Verify a signature
    version             Return the version of electrum

optional arguments:
  -h, --help            show this help message and exit

global options:
  -v, --verbose         Show debugging information
  -P, --portable        Use local 'electrum_data' directory
  -w WALLET_PATH, --wallet WALLET_PATH
                        wallet path

Run 'electrum help <command>' to see the help for a command


Title: Re: Startup parameters for Electrum?
Post by: Vadi2323 on March 12, 2016, 03:42:12 PM
There are lots of parameters. 
Use...

Can you show an example for Windows please? I could not to get results with "-h" in my Windows 8:

http://voropaev-vadim.narod.ru/click/2016-03-12_184151.jpg


Title: Re: Startup parameters for Electrum?
Post by: shsmith on March 12, 2016, 03:57:19 PM

Can you show an example for Windows please? I could not to get results with "-h" in my Windows 8:

That is odd. I do not see any console output in the windows EXE build of electrum.
If you run electrum from python sources it works.  For example:
Code:
python electrum --help


Title: Re: Startup parameters for Electrum?
Post by: Lionel on August 03, 2017, 08:19:13 PM

Can you show an example for Windows please? I could not to get results with "-h" in my Windows 8:

That is odd. I do not see any console output in the windows EXE build of electrum.
If you run electrum from python sources it works.  For example:
Code:
python electrum --help


I want to send commands to Electrum via TCP from my script running on the same machine where Electrum is.

If i launch the Python version, can i achieve this? Is the Python version also a daemon ?

P.S. I have Electrum for Windows, do i need Linux for that?


Title: Re: Startup parameters for Electrum?
Post by: Abdussamad on August 03, 2017, 09:46:11 PM
electrum has a json rpc interface but it isn't well documented. i think it's mostly the commands you see when you type electrum help except you send them to the electrum daemon. and yes electrum help doesn't work on windows.