electrum icon indicating copy to clipboard operation
electrum copied to clipboard

Failed to connect to 127.0.0.1 port 7777: Connection refused

Open bar-boss opened this issue 3 years ago • 1 comments

Ubuntu 20.04.5 LTS

  1. start electrum deamon electrum daemon -d starting daemon (PID 1055)
  2. load wallet electrum load_wallet -w /path/to/wallet true
  3. get balance electrum -o -w /path/to/wallet getbalance { "confirmed": "0.000405" }
  4. get balance throung jsonrpc curl --data-binary '{"jsonrpc":"2.0","id":"curltext","method":"getbalance","params":[]}' http://user:[email protected]:7777 curl: (7) Failed to connect to 127.0.0.1 port 7777: Connection refused

Why cURL can't connect to 127.0.0.1 port 7777?

bar-boss avatar Sep 19 '22 14:09 bar-boss

Have you configured electrum to listen on that port? $ electrum setconfig rpcport 7777

SomberNight avatar Sep 22 '22 17:09 SomberNight