this is a pretty general, conceptual question. I feel I do not yet completely understand the blockchain transaction dynamics.
Let's say, we have A, B and C trading on the Blockchain:
- A has previously transferred 10BTC to B. So B has an unspent transaction output (that it can spend) referenced by the address of A.
- Now, B wants to pay 5BTC to C and does so by using the UTXO that it has from A's earlier transaction and routing it to C.
- So, B forwards the UTXO with A's address to C and also gives 5BTC change to himself.
So, now, doesn't the transaction list look like this?
Inputs:
- address_A 10BTC
Outputs:
- address_C 5BTC
- address_B 5BTC
Now, to me this seems correct from B's view, but it actually looks like A has transferred money to C and B, instead of B transferring money to C. I guess my understanding is wrong then, because it cant work like this. So where is my error?
From the view of C, shouldn't it look like this:
Inputs:
- address_B 10BTC
Outputs:
- address_C 5BTC
- address_B 5BTC
Otherwise, also C would have again the unspent output of A and this output from A would sort of be forwarded again and again.
Don't judge me for my bad understanding please :D, if there is any good reads that you can recommend that would be great.
Thanks!
Best, JC