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

1 Answer 1


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, 2013 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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