Bitcoin Forum
May 10, 2024, 11:47:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Sendmany... change to be returned to the same address that sending?  (Read 594 times)
mrvision (OP)
Sr. Member
****
Offline Offline

Activity: 527
Merit: 250



View Profile
May 28, 2013, 04:27:43 PM
 #1

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.
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715384845
Hero Member
*
Offline Offline

Posts: 1715384845

View Profile Personal Message (Offline)

Ignore
1715384845
Reply with quote  #2

1715384845
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
May 28, 2013, 04:49:17 PM
 #2

No.

You can only do this with raw transactions.  Using the friendly functions, you get no control over the change address.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!