How does the Bitcoin blockchain actually work?
Bitcoin’s blockchain is a shared public ledger. Transactions are broadcast to the network, nodes check whether they follow the protocol, and miners compete to add valid transaction batches into blocks using proof of work. Each accepted block links to the previous one.
Next question: How do I sell Bitcoin and move the money to my bank account? →
Use Bitcoin’s technical documentation and a reputable node explorer to verify concepts such as transactions, blocks, confirmations and nodes.
Read Bitcoin’s technical overviewRun your own numbers: Compound interest and savings calculator.
The blockchain is a ledger
A blockchain is a sequence of blocks containing transactions and metadata. Copies are maintained by many independent computers, so no single database administrator controls the ledger.
The protocol defines which blocks and transactions are acceptable. Nodes independently validate what they receive rather than trusting a central bookkeeper.
Transactions go to the network
When a wallet creates a transaction, it sends the transaction to peers. Nodes relay transactions that meet the validation rules, allowing other nodes and miners to learn about pending transactions.
A transaction is not final merely because the wallet displays it. The network must accept it into the chain.
What full nodes do
A full node maintains and verifies a copy of the blockchain according to the node’s software rules. It can reject invalid transactions or blocks without asking a central authority.
Nodes provide a key part of Bitcoin’s resistance to a single-party database edit.
What miners add
Miners assemble transactions into candidate blocks and compete by performing proof-of-work calculations. The winning block is propagated and independently checked by other nodes.
Proof of work makes rewriting recent history costly because an attacker would need to reproduce the work and compete with the honest network.
What confirmations mean
When a transaction is included in a block, it has one confirmation. Each later block adds another confirmation. More confirmations generally make a transaction harder to reverse through a competing chain.
The appropriate number of confirmations depends on the value and risk of the payment.
How clients find peers
Bitcoin software uses peer-discovery mechanisms to find other nodes. The exact implementation can change, but there is no central peer directory that every wallet must use.
A node can learn about peers and request block or transaction data while still independently checking the data received.
What the blockchain does not guarantee
The blockchain can protect the integrity of the ledger while a user can still lose funds through a stolen private key, phishing, exchange failure or an incorrectly constructed transaction.
Network security and personal custody are different issues.
A Bitcoin payment starts as a signed transaction
A wallet uses a private key to create a digital signature proving control of the relevant spending authority. The transaction identifies the inputs being spent and the outputs being created. It is then broadcast to other computers running Bitcoin software. Those nodes do not merely pass it along; they check whether it satisfies the protocol rules before relaying it further.
One important concept is the unspent transaction output, or UTXO. Bitcoin does not maintain a simple account balance in the way a bank does. Instead, spendable outputs from earlier transactions are consumed as inputs in later transactions. This model lets nodes determine whether the same output has already been spent and reject a double spend.
Mining orders transactions into blocks
Miners collect valid transactions into candidate blocks and perform proof-of-work. A valid block contains a reference to the previous block, so altering old transaction data would require the attacker to rebuild subsequent proof-of-work and overtake the chain accepted by the network. That is why the blockchain is more than a database: it combines cryptographic commitments, economic incentives and independent verification.
Confirmations are simply the number of blocks added after the block containing the transaction. A merchant can choose how much confirmation depth is appropriate for its risk, because a transaction included in a block is not equally safe for every type of payment. Bitcoin’s protocol provides the mechanism; the business decides the operational risk threshold.
A block is accepted only after protocol checks
Nodes do not accept a block merely because a miner produced it. The transactions must satisfy the protocol’s validation rules and the block must meet the proof-of-work requirement. Nodes can reject invalid data without relying on the miner’s reputation. This independent checking is a central reason the network can maintain a shared transaction history across many participants.
Worked example
Illustrative example: A merchant accepts a Bitcoin payment and waits for additional blocks before treating it as settled.
- Transaction included in the first block: 1 confirmation.
- Three later blocks are added: 3 additional confirmations.
- Total after those blocks: 1 + 3 = 4 confirmations.
The four-confirmation result is a hypothetical settlement count, and the merchant’s operational threshold remains a separate decision.
The confirmation count is intentionally simple. Bitcoin users may choose different confirmation policies depending on the transaction value, fraud risk and the merchant’s tolerance for settlement uncertainty.
The example counts confirmations rather than assigning a monetary value to them. A transaction with four confirmations is not four times more valuable than a transaction with one confirmation. Confirmation depth is a measure of how much additional block history has accumulated after the payment, which is why businesses set their own operational threshold.
What is the Bitcoin blockchain in simple terms?#
It is a public transaction ledger copied and verified by many independent computers. Transactions are grouped into blocks, and accepted blocks are linked into a chain. A Bitcoin transaction is signed with cryptographic credentials before it is broadcast to peers on the network.
How are Bitcoin transactions broadcast?#
A wallet sends the transaction to network peers, which relay it to other nodes and miners. Nodes apply protocol rules while relaying and validating the transaction. Full nodes validate transactions independently rather than accepting a central administrator’s approval. After broadcast, a valid transaction may be included in a mined block and become part of the chain.
What does a Bitcoin node verify?#
A node checks that transactions and blocks obey the protocol, including signatures, inputs, outputs and block validity. A full node does not simply trust a central server. UTXOs are the spendable outputs of earlier transactions and form the inputs for later payments.
What is a Bitcoin confirmation?#
A transaction has one confirmation when it is included in an accepted block. Each subsequent block adds another confirmation. Each block commits to the previous block, which links the history into a chain. Later blocks provide additional confirmation depth after the transaction’s inclusion.
How do Bitcoin clients find peers?#
Bitcoin software uses peer-discovery methods and existing peers to learn about the network. The process is distributed rather than controlled by one master directory. Mining uses proof of work to make it difficult to rewrite accepted history without redoing the necessary computational work.
Does a blockchain stop Bitcoin scams?#
A correct Bitcoin ledger does not protect a user from sending funds to the wrong recipient. The ledger can be valid while a user sends coins to a scammer or loses the private key. User security and ledger security are different. A confirmation is counted when another block is added after the block containing the transaction.
Why are more confirmations safer?#
Each additional block builds more work on top of the transaction’s block. Reversing a deeply buried transaction generally requires a larger competing reorganisation. The protocol defines validity, while a merchant or service decides how many confirmations it wants before releasing goods or funds.
Keep reading
- What should I do when my cheap fixed-rate mortgage ends?Related question
- My Virgin Money credit card has expired: what should I do?Related question
- What should I do with a big Premium Bonds win?Related question
- Is it worth having a second credit card?Related question
- What is the difference between kH/s, MH/s, GH/s and TH/s?Same topic
- Can you mine Bitcoin with a normal PC?Same topic
- How do I keep track of small everyday expenses?Popular question
- Compound interest and savings calculatorCalculator
- More in Crypto & Bitcoin: 22 answersTopic hub
Next question →How do I sell Bitcoin and move the money to my bank account?
Sources
General information, not personal financial advice. Rules depend on your circumstances; check the official source or speak to a regulated adviser before acting.