Bitcoin Forum

Bitcoin => Electrum => Topic started by: anusha5678 on April 23, 2018, 07:05:58 AM



Title: RPC username and password
Post by: anusha5678 on April 23, 2018, 07:05:58 AM
How can i find RPC username and password in electrum

and how will i config

in my code?


Title: Re: RPC username and password
Post by: bob123 on April 23, 2018, 09:16:01 AM
You can't 'find' your RPC username and password, you have to set one first.

In the console (to set port, username and password):
Code:
electrum setconfig rpcport 7777
electrum setconfig rpcuser "username"
electrum setconfig rpcpassword "password"

Then start the daemon and load your wallet file:
Code:
electrum daemon start
electrum daemon load_wallet




Title: Re:how i will start daemon
Post by: anusha5678 on April 24, 2018, 07:56:18 AM
how i will start daemon

i did set rpcuser and pass and port. next i willl put this command create() , its shows error msg and also tried daemon command , how can i start daemon ?

https://prnt.sc/j9ck81

http://prntscr.com/j9ckfk

please check this screenshorts.


Title: Re: RPC username and password
Post by: bob123 on April 24, 2018, 08:32:18 AM
You need to run this commands in a command line, not in the electrum console.

The required steps are outlined in this guide: http://docs.electrum.org/en/latest/merchant.html (http://docs.electrum.org/en/latest/merchant.html)
This guide is based on a linux system. Commands on windows might differ from them.
Anyway, it is recommended to run a webserver on a linux machine (for security reasons).


Title: Re: RPC username and password
Post by: HCP on April 24, 2018, 01:06:38 PM
This guide is based on a linux system. Commands on windows might differ from them.
Commands on Windows don't exist as there is no Electrum daemon for Windows... and you cannot use commandline options like you can use on Linux.