Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: soggy-hamster on June 12, 2012, 11:21:44 AM



Title: <deleted>
Post by: soggy-hamster on June 12, 2012, 11:21:44 AM
<deleted>


Title: Re: Bitcoind gettransaction problem?
Post by: Pieter Wuille on June 12, 2012, 03:58:29 PM
Bitcoin transactions do not have a well-defined "from" address. Each transaction can have several inputs, each of which has potentially an identifiable address it was previously sent to. Those addresses may or may not be under control of the sender of the funds.

If you need to do refunds, ask people for a refund address.

If you need to identify individual payments, give a different (unique) receive address for each.


Title: Re: Bitcoind gettransaction problem?
Post by: Stephen Gornick on June 12, 2012, 09:46:13 PM
Any help how I can do this, without using an external service like blockexplorer?

Lots of interest in doing this exact same thing.  There's going to be a lot of SatoshiDICE copycats, I suspect:

Related:
 - http://bitcoin.stackexchange.com/questions/3896


Title: Re: Bitcoind gettransaction problem?
Post by: casascius on June 12, 2012, 10:03:42 PM
Bitcoin transactions do not have a well-defined "from" address. Each transaction can have several inputs, each of which has potentially an identifiable address it was previously sent to. Those addresses may or may not be under control of the sender of the funds.

If you need to do refunds, ask people for a refund address.

If you need to identify individual payments, give a different (unique) receive address for each.

If using any normal client, and the payment is not multisig and not coming from a website like MtGox, any and all of those inputs are addresses controlled by the sender.  They must be, otherwise the sender would not have been able to issue the transaction.  Can anyone provide a counter-example?