Author

Topic: Startup parameters for Electrum? (Read 1111 times)

legendary
Activity: 3710
Merit: 1586
August 03, 2017, 04:46:11 PM
#6
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.
sr. member
Activity: 613
Merit: 305
August 03, 2017, 03:19:13 PM
#5

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?
newbie
Activity: 34
Merit: 0
March 12, 2016, 10:57:19 AM
#4

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
legendary
Activity: 2044
Merit: 1231
March 12, 2016, 10:42:12 AM
#3
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:

newbie
Activity: 34
Merit: 0
March 12, 2016, 10:25:04 AM
#2
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] ...

positional arguments:
 
    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 ' to see the help for a command
legendary
Activity: 2044
Merit: 1231
March 11, 2016, 02:41:58 AM
#1
What are the startup parameters for Electrum? I only know -w:
Code:
-w D:\bitcoin\electrum.dat

Are there any more?
Jump to: