Title: bitcoind sendmany not work Post by: TheBomber999 on September 19, 2014, 04:08:33 PM Hello everyone,
i've got a problem with this command (on centos 6 with latest version of bitcoind): ./bitcoind sendmany "myaccount" {"1MXXXXXXXXXXXXXXXXXXXXXXXXXXw7":0.00011520,"1MXXXXXXXXXXXXXXXXXXXXXXXXXXDC":0.00007400,"13XXXXXXXXXXXXXXXXXXXXXXXXXXYr":0.00002100} always return: "error: value is type int, expected obj" Can anyone help me please? Title: Re: bitcoind sendmany not work Post by: cr1776 on September 19, 2014, 06:09:53 PM Do you need to quote the second item if you are running this from the shell? Not by the computer to try it.
e.g. a ' before the { ???? like: bitcoind sendmany "" '{"mvTt8hav6e9ESjSrXJ1yaJhyULHv8ywcN7":50}' 1 "To the Faucet" bitcoind sendmany "SomeAccount" '{"myeTWjh876opYp6R5VRj8rzkLFPE4dP3Uw":10,"mikZVLuasDcY1Jmph3rqgT1NXfjB1srSEc":15,"mvTt8hav6e9ESjSrXJ1yaJhyULHv8ywcN7":50}' See: https://bitcointalk.org/index.php?topic=4254.0 Title: Re: bitcoind sendmany not work Post by: TheBomber999 on September 22, 2014, 01:31:42 PM Thanks bro! It's work!!!
Title: Re: bitcoind sendmany not work Post by: seoincorporation on October 02, 2014, 05:35:39 PM I make it work with curl and the blockchain API
Quote #!/bin/bash #Guid gu="xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx" #Blockchain password pas="xxxxxxxxxx" green="1LuckyG4tMMZf64j6ea7JhCz7sDpk6vdcS" yellow="1LuckyY9fRzcJre7aou7ZhWVXktxjjBb9S" red="1LuckyR1fFHEsXYyx5QK4UFzv3PEAepPMK" BTCg="250000" BTCy="150000" BTCr="100000" echo "" curl "https://blockchain.info/merchant/$gu/sendmany?password=$pas&recipients=%7B%22$green%22%3A$BTCg%2C%22$yellow%22%3A$BTCy%2C%22$red%22%3A$BTCr%7D&shared=false&fee=10000" |