With RPC, how to do a simple paytomany?
Difficult to get information about RPC commands. Documentation is only for command lines.
I tried:
curl -H 'Content-type: application/json' --data '{"id":"test","method":"paytomany","params":{"outputs":[["1BBD4...........ExgXhJ6n",0.00005],["1L3uDh.........4pZP6",0.00005002],["1E4W........hvB9tas",0.00005004],["16qV..........DaDLta",0.00005008]],"tx_fee":0.0001,"from_addr":"1LW........bk6Fjm4546"}}' -s 'http://localhost:7777'
But:
{"error": {"message": "Server error: File \"/usr/local/lib/python2.7/dist-packages/Electrum-2.7.12-py2.7.egg/electrum/bitcoin.py\", line 120, in int_to_hex | TypeError: hex() argument can't be converted to hex", "code": -32603}, "jsonrpc": "2.0", "id": "test"}
Thanks.