Author

Topic: bitcoind sendmany not work (Read 1190 times)

legendary
Activity: 3304
Merit: 3094
October 02, 2014, 01:35:39 PM
#4
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"
legendary
Activity: 1274
Merit: 1001
"shh, he's coding..."
September 22, 2014, 09:31:42 AM
#3
Thanks bro! It's work!!!
legendary
Activity: 4130
Merit: 1307
September 19, 2014, 02:09:53 PM
#2
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 {  Huh?

like:

bitcoind sendmany "" '{"mvTt8hav6e9ESjSrXJ1yaJhyULHv8ywcN7":50}' 1 "To the Faucet"
bitcoind sendmany "SomeAccount" '{"myeTWjh876opYp6R5VRj8rzkLFPE4dP3Uw":10,"mikZVLuasDcY1Jmph3rqgT1NXfjB1srSEc":15,"mvTt8hav6e9ESjSrXJ1yaJhyULHv8ywcN7":50}'


See:
https://bitcointalksearch.org/topic/pull-sendmany-rpc-command-4254
legendary
Activity: 1274
Merit: 1001
"shh, he's coding..."
September 19, 2014, 12:08:33 PM
#1
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?
Jump to: