Have been trying to write a dust cleaner for altcoins in perl.
After constant 500 server errors using the perl module JSON::RPC::Client I have been trying to use curl directly to see what format the request needs to be in.
However I cannot get
createrawtransaction to work with curl either.
I have tried just about every different formatting combination I can think of, for example:
curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "createrawtransaction", "params": [ "[{\"vout\":1,\"txid\":\"0bfa637d84586fc0acee31409fed3f771c78458bad195eb6f2d16ff5d4eaef07\"},{\"vout\":0,"txid":\"0ec54adfbd8d83f10c5ffb9429431129cf0f6f9ffb096f3c255458032ece5280\"}]","{\"DGV3v6MWakbBzmir9gDNnaU8yV7KGPUTi4\":0.19}" ] }' -H 'content-type: text/plain;'
http://user:[email protected]:6666/Other calls (using perl or curl) do not result in errors for example listtransactions, getinfo, validateaddress etc.
I have read quite a few posts on stackexchange and bitcoinexchange asking if this can be done... There are no answers.
So can it be done? If so, where am I going wrong?