Bitcoin Forum
April 20, 2018, 01:07:57 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Quick question about returning coins.  (Read 400 times)
MintPaw
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!
1524229677
Hero Member
*
Offline Offline

Posts: 1524229677

View Profile Personal Message (Offline)

Ignore
1524229677
Reply with quote  #2

1524229677
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1524229677
Hero Member
*
Offline Offline

Posts: 1524229677

View Profile Personal Message (Offline)

Ignore
1524229677
Reply with quote  #2

1524229677
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1000


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: 1036
Merit: 1001


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!