Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: leek_rs on September 08, 2013, 02:36:20 PM



Title: Finding the main address of a transaction
Post by: leek_rs on September 08, 2013, 02:36:20 PM
When someone sends a payment to my address, I need to find their primary address, the one they control. But it's obscured by all the output/input addresses. I can't figure out which address is the one they control. How do I find that?


Title: Re: Finding the main address of a transaction
Post by: nandika on September 08, 2013, 03:03:30 PM
you should ask the sender of the transaction.
Sometimes they can send it with an address they don't control, like as an mtgox withdrawal, or from another exchanger...
Safest is to ask.


Title: Re: Finding the main address of a transaction
Post by: CIYAM on September 08, 2013, 03:06:18 PM
I am guessing you are trying to work out where to send funds back to (most likely for the purpose of some sort of gambling game) - the short answer is that you *cannot* determine this as the protocol doesn't have such information.

If you want to be able to reliably send money *back* to an address you should ask the user/player to provide a "payment" address.


Title: Re: Finding the main address of a transaction
Post by: leek_rs on September 08, 2013, 03:19:48 PM
I see. Thanks  :D