Bitcoin Forum

Bitcoin => Project Development => Topic started by: seoincorporation on October 31, 2014, 12:32:29 AM



Title: Blockchain API - Multiple send for the same addy in same transaction (Help)
Post by: seoincorporation on October 31, 2014, 12:32:29 AM
Hi to all.

I have a problem with the blockchain API and maybe you can help me to solve it:

I make a code to make bets on luckybit (https://bitcointalk.org/index.php?topic=806051.0), i can make single bets with:

Code:
curl "https://blockchain.info/es/merchant/$gu/payment?password=$pas&to=1LuckyG4tMMZf64j6ea7JhCz7sDpk6vdcS&amount=250000"

Bets to the 3 diferent colors with:

Code:
green="1LuckyG4tMMZf64j6ea7JhCz7sDpk6vdcS"
yellow="1LuckyY9fRzcJre7aou7ZhWVXktxjjBb9S"
red="1LuckyR1fFHEsXYyx5QK4UFzv3PEAepPMK"
BTCg="250000"
BTCy="150000"
BTCr="100000"
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"

But the problem is when i want to make more than 1 bet to the same color (same addy) in the same transaction. I try with the multiple color bets code, and put the same addy for green, yellow and red. But only one bet comes down.

I wan to find the way to send 0.001 3 times or more to the same addy in the same transaction with the API:

something like this: https://blockchain.info/tx/58f285b29ec21345542b2e2c3c86253d22236ac8e0b5e4308dbab9935e3428df (https://blockchain.info/tx/58f285b29ec21345542b2e2c3c86253d22236ac8e0b5e4308dbab9935e3428df)

Hope some one can help me with this. Thx