Bitcoin Forum
December 17, 2017, 01:00:44 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   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


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!
1513515644
Hero Member
*
Offline Offline

Posts: 1513515644

View Profile Personal Message (Offline)

Ignore
1513515644
Reply with quote  #2

1513515644
Report to moderator
1513515644
Hero Member
*
Offline Offline

Posts: 1513515644

View Profile Personal Message (Offline)

Ignore
1513515644
Reply with quote  #2

1513515644
Report to moderator
1513515644
Hero Member
*
Offline Offline

Posts: 1513515644

View Profile Personal Message (Offline)

Ignore
1513515644
Reply with quote  #2

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

Posts: 1513515644

View Profile Personal Message (Offline)

Ignore
1513515644
Reply with quote  #2

1513515644
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218


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


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!