0

BTC address1 has 2 BTC

BTC address2 has 4.5 BTC

Assume the address is reused, the fee is zero.

Address2 sends 1.5 BTC to address1.

Thus, BTC address1 has 3.5 BTC and BTC address2 has 3BTC

Since BTC address1 is receiving fund, it does not need to sign anything.

The transaction

Input: 4.5 BTC address2 , output: BTC address2 : 3 BTC (return change), BTC address1: 1.5)

How does the blockchain know that BTC address1 got 3.5 BTC?

1 Answer 1

2

How does the blockchain know that BTC address1 got 3.5 BTC?

It doesn't know anything, it's just a list

Wallets and other software know by looking through the whole list of transactions from the beginning of time† and adding up all the amounts received by address 1 and subtracting all the amounts spent from address 1.


† Bitcoin time effectively started 12 January 2009

1
  • TQ for the answer. What if I want to spent the 3 BTC out of 3.5 BTC from address1? I only need to provide one signature is it?
    – Cisco Mmu
    Jun 25, 2020 at 23:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.