Bitcoin Forum

Bitcoin => Electrum => Topic started by: anemol on December 11, 2016, 02:13:38 PM



Title: Electrum-2.7.12: RPC paytomany
Post by: anemol on December 11, 2016, 02:13:38 PM
With RPC, how to do a simple paytomany?

Difficult to get information about RPC commands. Documentation is only for command lines.

I tried:
Code:
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:

Code:
{"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.


Title: Re: Electrum-2.7.12: RPC paytomany
Post by: html5-ninja.com on February 05, 2017, 09:45:55 AM
you have to add "unsigned":true , option