[Bitcoin-development] Determine input addresses of a transaction

Jan Vornberger jan at uos.de
Thu Oct 27 14:50:16 UTC 2011

Am Mo, 24.10.2011, 16:55, schrieb Gavin Andresen:
> If you assume the client has all previous transactions, then you could
> get the transaction input's prevout (from the memory pool or disk) and
> then ExtractAddress() from it.

I now created a patch based on this idea. To avoid slowing down
listtransactions or gettransaction, I put it in a separate RPC
call 'getorigins'. This is the patch:


Any obvious mistakes I made there?


More information about the bitcoin-dev mailing list