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... but i don't see if this approach would be the best.