blockstream API response
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.