Author

Topic: Quick question about returning coins. (Read 521 times)

legendary
Activity: 1050
Merit: 1002
February 28, 2014, 08:10:53 PM
#3
There is also a project called CoinJoin in the works to help out with anonymity. If this ever gets widely adopted you really won't want to assume the inputs to a transaction come from the same owner, as the purpose of CoinJoin is to make sure that doesn't happen.

The correct answer to your question is to ask your user what address they want you to send refunds/withdrawals to. Thank you for asking instead of making an assumption. By the way, transaction IDs are not reliable without confirmations so don't have our app rely on those either.
donator
Activity: 1218
Merit: 1079
Gerald Davis
February 28, 2014, 07:51:52 PM
#2
There is no way to know for sure.  Some sites just pick one but that is very poorly designed and that assumption is not always valid.
newbie
Activity: 8
Merit: 0
February 28, 2014, 07:50:19 PM
#1
Hi there, I've started doing some programming involving making a Bitcoin related game and I've come across a problem.

Using Blockchain.info how do I determine who sent coins? Looking at this transaction for example.

http://prntscr.com/2wr324

It has two input addresses. If I wanted to return the coins to the sender which address would I return them to?

Thanks in advance!
Jump to: