Author Topic: Get sender address from RPC api  (Read 1952 times)

0 Members and 1 Guest are viewing this topic.

Offline lib

  • Sr. Member
  • ****
  • Posts: 243
  • liberty
    • View Profile
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
« Last Edit: January 15, 2014, 04:48:41 am by lib »
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA
Personal Address: PakhuBkqTu4oTHJ4ZffvzVwCGCMfuqazgm

Offline chida

  • Full Member
  • ***
  • Posts: 77
    • View Profile
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?
BTC: 12A5tZgivCa7BVF4YbQdtSedFzanpCbupb
MMC: MBayoLj9WEWTsCk8n45G37tDSSJP2Dd9k5
PTS: PiVUjNkwk6VKrKWCMtA7NkqFhfkqR5pnCS