Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jongsuknim on June 19, 2014, 03:41:04 AM



Title: duplicated address error
Post by: jongsuknim on June 19, 2014, 03:41:04 AM
Hi,
I’m trying to make transaction which have multiple addresses like this
https://blockchain.info/tx/90a93935821d4d298b69bbc639bcec057601ef5eb189cba3932c81aad768774e
You can find few addresses are received 2 times in that transaction.

So, I tried to simulate this by using raw transaction.

first, I made raw transaction.
Quote
bitcoind createrawtransaction '[{"txid":"ac59730a329d54be037e5f88677656a7ec083ab9721870337e443aec92c46ef9","vout":1}]' '{"mgyyu44o5zSJdjQwcJieaP7pj1MiVv9QmC":0.3, "miuGQgtAAUxXLf4K3Q1z3XMWfXrekkkRUg":0.4, "miuGQgtAAUxXLf4K3Q1z3XMWfXrekkkRUg":0.2}’

but, I got errors.
Quote
error: {"code":-8,"message":"Invalid parameter, duplicated address: miuGQgtAAUxXLf4K3Q1z3XMWfXrekkkRUg"}

How do I make transaction which has same receiving addresses more than 2 times.

thanks.


Title: Re: duplicated address error
Post by: Dare on June 20, 2014, 09:00:56 PM
There's no reason to send multiple outputs to the same receiving address, as they can be combined into one for less fees and less load on the network. Is there a particular reason you want to do this, or are you just experimenting with it? If you're just experimenting, you may want to try using the Bitcoin-qt GUI, as it supports sending to multiple addresses in a single transaction and may be easier for you to use.