Bitcoin Forum
May 11, 2024, 01:06:03 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Quick question about returning coins.  (Read 507 times)
MintPaw (OP)
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
March 01, 2014, 12:50:19 AM
 #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!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715432763
Hero Member
*
Offline Offline

Posts: 1715432763

View Profile Personal Message (Offline)

Ignore
1715432763
Reply with quote  #2

1715432763
Report to moderator
1715432763
Hero Member
*
Offline Offline

Posts: 1715432763

View Profile Personal Message (Offline)

Ignore
1715432763
Reply with quote  #2

1715432763
Report to moderator
1715432763
Hero Member
*
Offline Offline

Posts: 1715432763

View Profile Personal Message (Offline)

Ignore
1715432763
Reply with quote  #2

1715432763
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
March 01, 2014, 12:51:52 AM
 #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.
acoindr
Legendary
*
Offline Offline

Activity: 1050
Merit: 1002


View Profile
March 01, 2014, 01:10:53 AM
 #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.
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!