<p>If an address appears in the <code>vout</code> list, it is incoming for that address.</p>

<p>If the address is in the <code>vin</code> list, it is an outgoing transaction for that address.</p>

<p>Addresses may appear in both the <code>vin</code> and the <code>vout</code>.</p>

CC BY-SA 4.0
2019-12-12T22:21:57.070Z
If they appeared in both, is there a way for me to differentiate them?
Toxnyc
CC BY-SA 4.0
2019-12-14T02:20:27.953Z
If they appear in both, the address is both sending and receiving at least some of the coins in the entire transaction. The coins it is sending will be in the vin array, and the coins it is receiving will be in the vout.
Raghav Sood
CC BY-SA 4.0
2019-12-12T21:57:34.847Z
2019-12-12T21:57:34.847Z
Raghav Sood
<p>How do I determine if the current transaction is an outgoing or an incoming transaction from looking at the following API response? </p>

<p><a href="https://blockstream.info/api/address/1A6HUTtraLwTg48AwpQxPwLmTnDGSSJteG/txs" rel="nofollow noreferrer">https://blockstream.info/api/address/1A6HUTtraLwTg48AwpQxPwLmTnDGSSJteG/txs</a></p>

<p><a href="https://i.sstatic.net/rPX7X.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/rPX7X.png" alt="enter image description here"></a></p>

<transactions><json-rpc><api><blockstream>
blockstream API response
Toxnyc
# blockstream API response

(Asked by: username_0 on 2019-12-12)

How do I determine if the current transaction is an outgoing or an incoming transaction from looking at the following API response?

<https://blockstream.info/api/address/1A6HUTtraLwTg48AwpQxPwLmTnDGSSJteG/txs>

[![enter image description here](https://i.sstatic.net/rPX7X.png)](https://i.sstatic.net/rPX7X.png)

**Tags:** transactions, json-rpc, api, blockstream


---

## 1 answers

### Answer by username_1 on 2019-12-12. Score: 1

If an address appears in the `vout` list, it is incoming for that address.

If the address is in the `vin` list, it is an outgoing transaction for that address.

Addresses may appear in both the `vin` and the `vout`.

> **Comments:**
> **username_0**: If they appeared in both, is there a way for me to differentiate them?  
> **username_1**: If they appear in both, the address is both sending and receiving at least some of the coins in the entire transaction. The coins it is sending will be in the vin array, and the coins it is receiving will be in the vout.  

---

