<p>Simply, it doesn't. The hashing puzzle is only needed for all nodes to agree on a common value. Once a block is found it is propagated through the network.
If the nounce is valid AND if the transactions in the blocks are valid then the block is accepted into the blockchain.
A transaction is valid if:</p>

<ol>
<li>each transaction input matches a previous transaction output.</li>
<li>they are reedemed by their legitimate owners</li>
<li>the sum of values of all transaction outputs is less than or equal to the sum of the values of all inputs.</li>
</ol>

<p>This verification is performed by bitcoin nodes. A miner is not incentivized to include invalid transactions in their blocks as they will invalidate the entire block (thus preventing the miners to obtain the coinbase reward).</p>

CC BY-SA 3.0
2018-02-20T18:18:27.283Z
So i was watching this video. https://www.youtube.com/watch?v=9-9_v1wSPBQ&t=333s  In reference to this. once this data is broadcasted to each node and miners. all of them will first verify the transaction by matching data Alice sent vs that in leadger. and at last will agree on majority. But then why do Alice have to send his own previous transactions information couldnt that be done directly by nodes??
amitnair92
CC BY-SA 3.0
2018-02-22T11:35:24.650Z
Bitcoin's core philosophy is privacy and decentralization. Letting a node identify users is against the specification of the protocol itself. Furthemore, Bitcoin users don't have any identifiable accounts, instead they have addresses that can be generated easily by several softwares. Every user has about 215,000,000,000,000,000,000,000,000,000,000,000,000 addresses per capita.(2.15 x 10^38) [Source](https://en.bitcoin.it/wiki/Weaknesses#Generating_tons_of_addresses).

So it is impossible for a node to know every addresses-user association.
berrur
CC BY-SA 3.0
2018-02-20T10:45:16.087Z
2018-02-20T10:45:16.087Z
berrur
<p>Nounce is per block and not per transaction. Each block contains many transactions.</p>

<p>Blockchain is the history of transactions. And all transactions are verified against that history. If history says you have 2 BTC, then your transaction of sending 2 BTC to your friend is valid and your transaction of sending 3 BTC to your friend is invalid.</p>

<p>Every full node contains a full history of transactions called Blockchain. So every node can validate every transaction and block easily. Nounce is a way to reach consensus about the state of that blockchain.</p>

CC BY-SA 3.0
2018-02-20T10:49:43.807Z
2018-02-20T10:49:43.807Z
Preet
<p>How exactly does solving nounce verify the transaction. or how are both of them interrelated.how does my transaction gets verified.</p>

<transactions><blockchain>
how exactly does solving nounce verify the transaction
amitnair92
# how exactly does solving nounce verify the transaction

(Asked by: username_0 on 2018-02-20)

How exactly does solving nounce verify the transaction. or how are both of them interrelated.how does my transaction gets verified.

**Tags:** transactions, blockchain


---

## 2 answers

### Answer by username_1 on 2018-02-20. Score: 0

Simply, it doesn't. The hashing puzzle is only needed for all nodes to agree on a common value. Once a block is found it is propagated through the network.
If the nounce is valid AND if the transactions in the blocks are valid then the block is accepted into the blockchain.
A transaction is valid if:

1. each transaction input matches a previous transaction output.
2. they are reedemed by their legitimate owners
3. the sum of values of all transaction outputs is less than or equal to the sum of the values of all inputs.

This verification is performed by bitcoin nodes. A miner is not incentivized to include invalid transactions in their blocks as they will invalidate the entire block (thus preventing the miners to obtain the coinbase reward).

> **Comments:**
> **username_0**: So i was watching this video. https://www.youtube.com/watch?v=9-9_v1wSPBQ&t=333s  In reference to this. once this data is broadcasted to each node and miners. all of them will first verify the transaction by matching data Alice sent vs that in leadger. and at last will agree on majority. But then why do Alice have to send his own previous transactions information couldnt that be done directly by nodes??  
> **username_1**: Bitcoin's core philosophy is privacy and decentralization. Letting a node identify users is against the specification of the protocol itself. Furthemore, Bitcoin users don't have any identifiable accounts, instead they have addresses that can be generated easily by several softwares. Every user has about 215,000,000,000,000,000,000,000,000,000,000,000,000 addresses per capita.(2.15 x 10^38) [Source](https://en.bitcoin.it/wiki/Weaknesses#Generating_tons_of_addresses).  So it is impossible for a node to know every addresses-user association.  

---

### Answer by username_2 on 2018-02-20. Score: 0

Nounce is per block and not per transaction. Each block contains many transactions.

Blockchain is the history of transactions. And all transactions are verified against that history. If history says you have 2 BTC, then your transaction of sending 2 BTC to your friend is valid and your transaction of sending 3 BTC to your friend is invalid.

Every full node contains a full history of transactions called Blockchain. So every node can validate every transaction and block easily. Nounce is a way to reach consensus about the state of that blockchain.


---

