Author

Topic: Sendmany... change to be returned to the same address that sending? (Read 614 times)

kjj
legendary
Activity: 1302
Merit: 1026
No.

You can only do this with raw transactions.  Using the friendly functions, you get no control over the change address.
sr. member
Activity: 527
Merit: 250
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.
Jump to: