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
Bitcoin Stack Exchange is a question and answer site for Bitcoin users, developers, and enthusiasts. It only takes a minute to sign up.
Sign up to join this communityHow 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
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
.