3
This is possibly a duplicate but, since I am a Bitcoin dummy I cannot find it.
Anyhow; as I understand (and I will make some assumptions here), a block in the blockchain contains one or more transactions.
Transactions are typically bits of information which contains delta's, I mean e.g.: Alice transfers 2 bitcoins to Bert.
So, to determine or verify my bitcoin balance (in order to make a valid transaction), does the whole chain needs to be analysed? If so, is this optimized in any way?
Or am I completely off track here?
related: Can someone explain how the Bitcoin Blockchain works?
– Murch – 2017-02-28T16:13:03.847You are on the right track, actually. Each transactions tracks changes in the ownership of bitcoin, so in order to get the total current balance for a particular address, you do need to look at every record of change for said address. Unfortunately, the only way to do that is to analyze every transaction involving that address ever. – John Henry – 2017-03-01T18:37:15.473