3

https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

I have a transaction and I want to see what addresses the inputs came from. How can I do that?

2

If you use gettransaction on the transaction ID, the keys used to claim the inputs are in the scriptSig fields. They're the string starting with 04. You'll have to hash them and then convert them to base58 get account IDs.

Note that these account IDs may or may not actually mean anything. If you're being paid out of "change", then the account IDs are essentially random.

  • 1
    David, I don't see a scriptSig field. Perhaps you're thinking of getrawtransaction? – Nick ODell Feb 21 '13 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.