1
$ ./electrum-3.2.3.exe --testnet setconfig rpcport 7777
true
$ ./electrum-3.2.3.exe --testnet setconfig rpcuser blah
true
$ ./electrum-3.2.3.exe --testnet setconfig rpcpassword blah
true

$ ./electrum-3.2.3.exe --testnet daemon start
Traceback (most recent call last):
  File "run_electrum", line 433, in <module>
AttributeError: module 'os' has no attribute 'fork'

I can't install on linux as centos 7.5 can't compile python3. I won't try any further since I have already wasted a day on compilation issues.

$ ./electrum-3.2.3.exe --testnet

starts up a gui client which is fine

$ curl --data-binary '{"id":"curltext","method":"blockchain.scripthash.get_balance","params":["mveNDYcr9Bb1xjnNeCRumiDHKU3n3CJBuk"]}' http://blah:blah@127.0.0.1:7777
{"result": null, "id": "curltext", "error": {"code": -32601, "message": "Method blockchain.scripthash.get_balance not supported."}}
$ curl --data-binary '{"id":"curltext","method":"get_balance","params":["mveNDYcr9Bb1xjnNeCRumiDHKU3n3CJBuk"]}' http://blah:blah@127.0.0.1:7777
{"result": null, "id": "curltext", "error": {"code": -32601, "message": "Method get_balance not supported."}}
$ curl --data-binary '{"id":"curltext","method":"getbalance","params":["mveNDYcr9Bb1xjnNeCRumiDHKU3n3CJBuk"]}' http://blah:blah@127.0.0.1:7777
{"result": null, "id": "curltext", "error": {"code": -32601, "message": "Method getbalance not supported."}}

I also tried without specifying the bitcoin address with the same results.

https://bitcointalk.org/index.php?topic=1894185.0 discusses the same issue and states isnt giving an error about the wallet being loaded, which is why I am getting the error above. Assuming the poster didn't mean "isn't" but rather "is", how would I "unload the wallet"?

note: mveNDYcr9Bb1xjnNeCRumiDHKU3n3CJBuk is an address in electrum's wallet

  • try getaddressbalance. also electrum help on the command line on a linux system will show you some docs. – Abdussamad Oct 19 '18 at 0:17
0

Turns out that electrum doesn't have to be in daemon mode to receive api requests, but it has to be in daemon mode before it supports them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.