Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: visionary on June 06, 2014, 03:22:15 AM



Title: how to get bitcoin addresss form transaction hash
Post by: visionary on June 06, 2014, 03:22:15 AM
i want to get a transaction hash's pay address


but i dont find how to do

who can help me


Title: Re: how to get bitcoin addresss form transaction hash
Post by: DannyHamilton on June 06, 2014, 05:05:17 AM
i want to get a transaction hash's pay address


but i dont find how to do

who can help me

You have a transaction hash, and you want to know the list of all addresses that received outputs in that transaction?

You could search the blockchain.info website.

blockchain.info also provides an API if you want to send a query from a program.

If the transaction involved an address in your wallet, you can use getrawtransaction and decoderawtransaction.

If the transaction did not involve an address in your wallet, you'll need to set txindex=1 and reindex your blockchain, then you can use getrawtransaction and decoderawtransaction.

If you explain why you want this, and what you are trying to accomplish, there may be a much easier, or better way to handle it.  Perhaps explain what you are trying to accomplish?