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

<p>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.</p>

CC BY-SA 3.0
2013-02-21T17:42:47.597Z
David, I don't see a scriptSig field. Perhaps you're thinking of `getrawtransaction`?
Nick ODell
CC BY-SA 3.0
2012-08-16T23:47:17.990Z
2012-08-17T00:09:21.260Z
2012-08-17T00:09:21.260Z
David Schwartz
<p><a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list" rel="nofollow">https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list</a></p>

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

<transactions><bitcoind><api>
Using the Bitcoin API, how can I see the sending address?
Shamoon
# Using the Bitcoin API, how can I see the sending address?

(Asked by: username_0 on 2012-08-16)

<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?

**Tags:** transactions, bitcoind, api


---

## 1 answers

### Answer by username_1 on 2012-08-16. Score: 2 | Accepted answer

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.

> **Comments:**
> **username_2**: David, I don't see a scriptSig field. Perhaps you're thinking of `getrawtransaction`?  

---

