Author

Topic: Electrum-2.7.12: RPC paytomany (Read 685 times)

member
Activity: 89
Merit: 10
February 05, 2017, 04:45:55 AM
#2
you have to add "unsigned":true , option
hero member
Activity: 800
Merit: 500
December 11, 2016, 09:13:38 AM
#1
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.
Jump to: