Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: BaiMangal on December 09, 2013, 09:34:59 PM



Title: using c# - verify that 2 addresses were in a transaction
Post by: BaiMangal on December 09, 2013, 09:34:59 PM
doing an app just to learn... and I need to know whats the best or what options I have to do this:

what would you use to verify that 2 addresses were in a transactin using C#?
I need to know if address A (received or send btc) from/to address B and I am doing my app in C#

can I use bitcoin client to achieve this?

thanks!


Title: Re: using c# - verify that 2 addresses were in a transaction
Post by: BaiMangal on December 10, 2013, 10:09:35 AM
is blockchain.info API my best choice?


Title: Re: using c# - verify that 2 addresses were in a transaction
Post by: biteasy on December 10, 2013, 10:44:39 AM
You could also try our REST API:
https://www.biteasy.com/developers


Title: Re: using c# - verify that 2 addresses were in a transaction
Post by: myrez on December 10, 2013, 11:09:34 PM
I would use bitcoin daemon, but for that you need server for daemon.
And you could use c# as well.


Title: Re: using c# - verify that 2 addresses were in a transaction
Post by: mcaizgk2 on February 09, 2014, 06:28:59 AM
You can use this library: https://github.com/GeorgeKimionis/BitcoinLib for C#, GetTransactionSenderAddress  returns the transaction's inputs' previous owing address(es), which is what you're asking for.

However it's worth mentioning that your client's sending addresses are actually different that your receiving addresses, so the challenge here is to find whether the sender for any given transaction's receiving address is the one you thought it was going to be in the first place.