<p>Welcome to Bitcoin.SE!</p>

<p>It is necessary to validate all transactions since it is possible otherwise for A to just broadcast a transaction sending 7 BTC to B even if he does not have enough. A could easily write his own program to do so.</p>

<p>Validating all transactions and the entire blockchain is necessary for Bitcoin to have any value and to ensure consensus rules are followed.</p>

CC BY-SA 3.0
2018-03-06T11:18:07.793Z
No, A can't send more money that he/she has in a wallet, and we don't need miners to validate that. All nodes validate that. 

Miners don't actually 'validate' anything more than all the other full nodes, this is a common misconception coming from popular news sites. Miners are there to prevent double-spending. When a transaction is included in a block it's called 'confirmed'.
Osias Jota
CC BY-SA 3.0
2018-03-06T11:27:19.090Z
@OsiasJota And, because the mempool is not consensus. Without the blockchain, the order of transactions cannot be agreed upon. The blockchain is the record of all transactions, without the miners we do not have a blockchain and there is no way for nodes to decisively know or agree who has what balance.
Willtech
CC BY-SA 3.0
2018-03-06T11:28:23.960Z
Unless you think that the OP wonders in the case if all nodes instantly 'mine' any received transaction into a personal blockchain, but then, still no consensus.
Willtech
CC BY-SA 3.0
2018-03-06T11:46:36.743Z
This is not about 'to validate', it's about 'to confirm'.
Osias Jota
CC BY-SA 3.0
2018-03-06T11:46:50.323Z
Only valid transactions can be confirmed.
Osias Jota
CC BY-SA 3.0
2018-03-06T13:25:39.683Z
So who validates the transactions?
Daniel Morritt
CC BY-SA 3.0
2018-03-07T01:43:28.907Z
@DanielMorritt Under normal circumstances, all full nodes validate the transaction against consensus rules. Without the blockchain it is impossible to know if a transaction meets all consensus rules.
Willtech
CC BY-SA 3.0
2018-03-06T10:46:31.243Z
2018-03-06T10:46:31.243Z
Willtech
<p>First of all, it must be clear that there isn't just one chain: every node in the network has its own local chain stored locally. Through message exchanges, all the nodes chains would eventually end up synchronized.</p>

<p>Now <em>imagine the situation in which there are no miners</em> and Alice wants to send 1 BTC to Bob. She sends the transaction to a node in the network and the node updates its local chain with the new transaction. 
In the meantime, Alice sends the very same Bitcoin to Charlie but this time she notifies a different node of the network with a new transaction, and that node will properly update its local chain with the new transaction. Now both nodes have two different transactions in their local chain. They start sending messages to their neighbour nodes telling that new transaction have been arrived. The nodes will receive updates from both the nodes but will not be able to discriminate which is the legit spending. </p>

<p>Mining is there because in this way all the nodes can agree on the same set of transactions: finding a solution to the hashing problem will guarantee (at least, most of the time) that all the nodes chains agree on the same set of transactions. This happens because only the one who finds the Proof of Work can add and propagate a block in the network. Finding the Proof of Work is a hard task, and due to its randomness nature it is <em>probable</em> that only one miner will  find a Proof of Work.</p>

<p>By the way, this question has been asked several times, i suggest you to take a read from the official <a href="https://en.bitcoinwiki.org/wiki/Main_Page" rel="nofollow noreferrer">Bitcoin Wiki</a> that will enlight you on the features of a blockchain.</p>

CC BY-SA 3.0
2018-03-06T11:49:42.107Z
2018-03-06T11:49:42.107Z
berrur
<p>What is the need of validating and authorizing a BTC transaction.
Say, for eg, A have 5 BTC in its wallet and he wants to send 3 BTC to B. What is the need to validate such a transaction?
And in case A wants to send 7 BTC to B, he simply cannot because he doesnt have the sufficient balance.
What is the need to validate then.
Why cant it be possible that the transactions are automatically added as a next block on the blockcahin on all the nodes? </p>

<blockchain><mining-theory>
What is the role of miners in Blockchain?
Sumeet Ahuja
# What is the role of miners in Blockchain?

(Asked by: username_0 on 2018-03-06)

What is the need of validating and authorizing a BTC transaction.
Say, for eg, A have 5 BTC in its wallet and he wants to send 3 BTC to B. What is the need to validate such a transaction?
And in case A wants to send 7 BTC to B, he simply cannot because he doesnt have the sufficient balance.
What is the need to validate then.
Why cant it be possible that the transactions are automatically added as a next block on the blockcahin on all the nodes?

**Tags:** blockchain, mining-theory


---

## 2 answers

### Answer by username_1 on 2018-03-06. Score: 0

Welcome to Bitcoin.SE!

It is necessary to validate all transactions since it is possible otherwise for A to just broadcast a transaction sending 7 BTC to B even if he does not have enough. A could easily write his own program to do so.

Validating all transactions and the entire blockchain is necessary for Bitcoin to have any value and to ensure consensus rules are followed.

> **Comments:**
> **username_2**: No, A can't send more money that he/she has in a wallet, and we don't need miners to validate that. All nodes validate that.   Miners don't actually 'validate' anything more than all the other full nodes, this is a common misconception coming from popular news sites. Miners are there to prevent double-spending. When a transaction is included in a block it's called 'confirmed'.  
> **username_1**: @username_2 And, because the mempool is not consensus. Without the blockchain, the order of transactions cannot be agreed upon. The blockchain is the record of all transactions, without the miners we do not have a blockchain and there is no way for nodes to decisively know or agree who has what balance.  
> **username_1**: Unless you think that the OP wonders in the case if all nodes instantly 'mine' any received transaction into a personal blockchain, but then, still no consensus.  
> **username_2**: This is not about 'to validate', it's about 'to confirm'.  
> **username_2**: Only valid transactions can be confirmed.  
> **username_3**: So who validates the transactions?  
> **username_1**: @username_3 Under normal circumstances, all full nodes validate the transaction against consensus rules. Without the blockchain it is impossible to know if a transaction meets all consensus rules.  

---

### Answer by username_4 on 2018-03-06. Score: 0

First of all, it must be clear that there isn't just one chain: every node in the network has its own local chain stored locally. Through message exchanges, all the nodes chains would eventually end up synchronized.

Now *imagine the situation in which there are no miners* and Alice wants to send 1 BTC to Bob. She sends the transaction to a node in the network and the node updates its local chain with the new transaction.
In the meantime, Alice sends the very same Bitcoin to Charlie but this time she notifies a different node of the network with a new transaction, and that node will properly update its local chain with the new transaction. Now both nodes have two different transactions in their local chain. They start sending messages to their neighbour nodes telling that new transaction have been arrived. The nodes will receive updates from both the nodes but will not be able to discriminate which is the legit spending.

Mining is there because in this way all the nodes can agree on the same set of transactions: finding a solution to the hashing problem will guarantee (at least, most of the time) that all the nodes chains agree on the same set of transactions. This happens because only the one who finds the Proof of Work can add and propagate a block in the network. Finding the Proof of Work is a hard task, and due to its randomness nature it is *probable* that only one miner will find a Proof of Work.

By the way, this question has been asked several times, i suggest you to take a read from the official [Bitcoin Wiki](https://en.bitcoinwiki.org/wiki/Main_Page) that will enlight you on the features of a blockchain.


---

