Is there a way to systematically know which output(s) in a btc transaction is/are sending change back to the person that initiated the transaction?
Context: I'm using python to analyze block data and would like to be able to define the numerical "net value" of each transaction (i.e. the amount received by target addresses minus the change that was sent back to the initiator).
As far as i can tell, block explorers essentially report the "gross value" of each transaction, which is the total of all input values minus the tx fee, which gives you the same value as the total of all outputs. What i'd like to be able to do is subtract the "change" outputs from that total and arrive at the "net value" transferred.
Edit: spelling
[link] [comments]
source https://www.reddit.com/r/btc/comments/pminjb/identifying_the_change_outputs_in_a_btc/
No comments:
Post a Comment