Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get the address the bitcoins were last owned by or the "from" address, I know that if you send bitcoins back to that address not in all cases will the user actually get them but I still need the code for it. Thanks in advance.

I am thinking it has something to do with Program.b.GetTransaction()

If I have an address, and coins are sent to that address, I want to find out the address the coins were sent from, I have a different address for every transactions specially for this.

share|improve this question
You could just make straight calls to bitcoind, from within a C# app. Take a look at this question(…). The question is about Satoshi Dice, but it does provide instructions on how to get customer information, including their original payment address. I'm not aware of a C# client. However, a C# application could easily integrate with the bitcoind.exe console application. – RLH Oct 26 '13 at 3:02
I maintain a c# wallet client located on Github: The apis may help you. – ChrisW Jan 16 '14 at 22:27
Please look at the date, I have done C# and PHP implementations of that already... – Max0999 Jan 17 '14 at 1:50

This is implemented in the GetTransactionSenderAddress() method of BitcoinLib

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.