Bitcoin Forum
June 05, 2024, 02:42:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum-2.7.12: RPC paytomany  (Read 665 times)
anemol (OP)
Hero Member
*****
Offline Offline

Activity: 800
Merit: 500



View Profile WWW
December 11, 2016, 02:13:38 PM
 #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.
html5-ninja.com
Member
**
Offline Offline

Activity: 89
Merit: 10


View Profile WWW
February 05, 2017, 09:45:55 AM
 #2

you have to add "unsigned":true , option

The World Needs More Ninjas
 *Link Removed*
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!