BitShares Forum

Main => Technical Support => Topic started by: chida on January 14, 2014, 05:47:11 pm

Title: Get sender address from RPC api
Post by: chida on January 14, 2014, 05:47:11 pm
hi and sorry,

i try to understand this world and i try to crate a game/services.

My program in c# .net call the wallet by RPC, but how i can get sender address ?

for now i can get the transaction on specific account by listtransactions, i try getrawtransaction verbose or decoderawtransaction, but i can't get the address of sender.

Can you help me?

From same code on github I understand that is possible or necessary analize all blockchain for get the sender address because is necessary analise all out address.
May be sufficient the single raw transaction?
Title: Re: Get sender address from RPC api
Post by: lib on January 15, 2014, 04:43:00 am
hi and sorry,

i try to understand this world and i try to crate a game/services.

My program in c# .net call the wallet by RPC, but how i can get sender address ?

for now i can get the transaction on specific account by listtransactions, i try getrawtransaction verbose or decoderawtransaction, but i can't get the address of sender.

Can you help me?

From same code on github I understand that is possible or necessary analize all blockchain for get the sender address because is necessary analise all out address.
May be sufficient the single raw transaction?

So the problem is "get the senders address from a transaction"? Have you considered the api provide by https://blockchain.info/api/blockchain_api ?
Guess you can use this method http://blockchain.info/rawtx/$tx_hash to get the senders address.
Like this one https://blockchain.info/rawtx/f2149245ecb9e7634b49c7feae3014dda62cdc6448a0647eecfc6f56f5d2e611