Crypto basics

What is a blockchain and how does it actually work?

A blockchain is a shared record of transactions that thousands of computers keep in sync without trusting each other. Here is how blocks, hashes, nodes and consensus fit together, explained without jargon.

Verifeer Editorial Updated 5 min read

Almost every conversation about crypto eventually reaches the word blockchain. It is often described as revolutionary, mysterious or both. In reality the idea is simple: a blockchain is a list of records that many computers keep identical copies of, arranged so that changing an old record is practically impossible without everyone noticing. Understanding that idea makes the rest of crypto, from wallets to fees to exchange deposits, much easier to follow.

A ledger that nobody controls alone

Traditional money relies on ledgers too. Your bank keeps a database showing how much you have, and you trust the bank to update it correctly. A blockchain replaces that single trusted database with a shared one. Thousands of independent computers, called nodes, each hold a full copy of the ledger. When a new transaction happens, it is broadcast to the network, checked against the rules and eventually added to every copy.

Because the copies are compared constantly, no single participant can quietly edit history. If one node tried to change a past transaction, its copy would no longer match everyone else's and the rest of the network would simply ignore it.

Blocks and the chain

Transactions are not added one by one. They are grouped into blocks. On Bitcoin a new block arrives roughly every ten minutes; on Ethereum roughly every twelve seconds. Each block contains a batch of transactions, a timestamp and one more crucial piece of data: a fingerprint of the previous block.

That fingerprint is called a hash. A hash function turns any amount of data into a fixed-length string of characters. Change a single comma in the input and the output changes completely. Since every block includes the hash of the block before it, the blocks form a chain. Altering a transaction in an old block would change that block's hash, which would break the link to the next block, and the next, all the way to the present.

Why old transactions are safeTo rewrite one past transaction, an attacker would have to redo every block that came after it, faster than the rest of the network keeps adding new ones. On a large blockchain that is economically out of reach.

Consensus: how strangers agree

A shared ledger raises an obvious question: if anyone can propose new blocks, who decides which block comes next? Blockchains answer it with a consensus mechanism, a set of rules that makes cheating expensive and honesty profitable.

Proof of work

Bitcoin uses proof of work. Specialized computers called miners compete to find a number that, combined with the block data, produces a hash below a target value. There is no shortcut; the only way is trial and error, billions of times per second. The first miner to succeed broadcasts the block, other nodes verify it in an instant, and the winner receives newly created bitcoin plus the transaction fees. The cost of electricity and hardware is what protects the network: attacking it would require outspending all honest miners combined.

Proof of stake

Ethereum switched to proof of stake in 2022. Instead of burning electricity, participants called validators lock up, or stake, their own ether as collateral. Validators are selected to propose and confirm blocks, and they earn rewards for doing it correctly. If they try to cheat, for example by confirming two conflicting blocks, part of their stake is destroyed. The security comes from capital at risk rather than energy spent.

What a transaction looks like

When you send crypto, your wallet creates a message that says which address is sending, which address receives, how much and what fee you are willing to pay. The wallet signs this message with your private key. Nodes check that the signature is valid and that the sending address really holds the funds. Valid transactions wait in a pool until a miner or validator includes them in a block.

After inclusion, the transaction has one confirmation. Each new block added on top increases the number of confirmations and makes reversal less likely. This is why exchanges ask for a certain number of confirmations before crediting a deposit: they are waiting until the transaction is effectively final.

Public, transparent and pseudonymous

On public blockchains anyone can read every transaction ever made using a block explorer website. You can look up an address and see its balance and history. Addresses are not tied to names on the chain itself, which is why the system is called pseudonymous rather than anonymous. Once an address is linked to a person, for example through an exchange that verified their identity, its history becomes readable to anyone who knows the link.

Smart contracts and tokens

Bitcoin's blockchain is designed mostly for transferring bitcoin. Ethereum and similar networks added smart contracts: small programs stored on the blockchain that run exactly as written when called. Smart contracts make it possible to create tokens, run exchanges without a company in the middle, lend and borrow, and build many other applications. They also introduce new risks, because a bug in a contract can be exploited by anyone who finds it.

Common misconceptions

  • "Blockchain means anonymous." Transactions are public and permanent. Analysis firms routinely trace funds between addresses.
  • "Data on a blockchain is always true." A blockchain guarantees that records were not changed after they were added. It cannot guarantee that the information was accurate when someone entered it.
  • "Every blockchain is decentralized." Decentralization varies widely. Some networks have thousands of independent validators; others are controlled by a handful of companies.
  • "If the blockchain is secure, my coins are secure." Your coins are only as safe as your private keys and the services you use.

Why this matters when you choose a platform

Knowing how blockchains work helps you read the fine print on exchanges and wallets. Deposit times depend on block times and confirmation requirements. Fees depend on how busy the network is. Withdrawals can only go to addresses on the matching network. And a centralized exchange balance is not on the blockchain at all until you withdraw it to an address you control. Each of those details affects the experience users describe in their reviews.

Key takeaways

  • A blockchain is a shared ledger copied across many independent computers.
  • Blocks are linked by hashes, so changing history breaks the chain.
  • Consensus mechanisms such as proof of work and proof of stake make cheating expensive.
  • Transactions are public and pseudonymous, not anonymous.
  • The ledger is hard to attack; the weak points are usually keys, apps and people.

Frequently asked questions

Can a blockchain be hacked?
The core ledger of a large blockchain is extremely hard to change because an attacker would need to control most of the network's computing power or stake. Most crypto losses come from hacked exchanges, wallets, smart contracts and phishing, not from breaking the blockchain itself.
Who owns a blockchain?
Nobody owns a public blockchain such as Bitcoin. Its rules are enforced by the software that independent participants choose to run. Private blockchains run by companies are a different model with a central operator.
Is every cryptocurrency on its own blockchain?
No. Coins such as BTC and ETH run on their own networks, while tokens such as most stablecoins are issued on top of an existing blockchain using smart contracts.
Why do blockchains use so much energy?
Proof-of-work chains like Bitcoin secure the ledger with mining, which consumes electricity by design. Proof-of-stake chains like Ethereum replaced mining with staked capital and use a tiny fraction of that energy.
Share this guide

Keep reading