Hi. I'm using Electrum daemon 2.9.3 with Ubuntu 16.04 and tried the following commands:
electrum daemon load_wallet -w MY_WALLET_FILE
curl --data-binary '{"id":"curltext","method":"payto","params":{"destination":"TO_ADDRESS", "amount":"0.001"}}' http://127.0.0.1:7777
And it returns:
{"error": {"message": "Server error: File \"/usr/local/lib/python2.7/dist-packages/electrum/bitcoin.py\", line 768, in deserialize_xkey | TypeError: object of type 'NoneType' has no len()", "code": -32603}, "jsonrpc": "2.0", "id": "curltext"}
Any idea what is causing this problem?