Title: Sendmany... change to be returned to the same address that sending? Post by: mrvision on May 28, 2013, 04:27:43 PM Is this possible? (I am using PHP)
I want to send a transaction using the sendmany from one output to many inputs, but if there's some change to be returned, the bitcoind creates a new bitcoin address and sends there the amount. I want this address to be the same as the one that is sending the bitcoins. Just like blockchain.info does. How can i do this? I'm trying to calculate how much the change is going to be in order to add this amount as a transaction to be sent to my own address, In order to do this, and calculate how much fees is the daemon going to add... i'm following this link (http://bitcoin.stackexchange.com/questions/1195/how-to-calculate-transaction-size-before-sending)... but i don't see if this approach would be the best. Title: Re: Sendmany... change to be returned to the same address that sending? Post by: kjj on May 28, 2013, 04:49:17 PM No.
You can only do this with raw transactions. Using the friendly functions, you get no control over the change address. |