No history yet

Blockchain Basics

What Is a Blockchain?

A blockchain is a shared, unchangeable digital ledger. Think of it like a notebook that's copied and spread across a network of computers. Every time someone adds a new page, or a “block,” of information, it’s added to every copy of the notebook. This makes it incredibly secure and transparent.

This technology's main job is to record transactions in a way that can't be tampered with. It's the foundation for cryptocurrencies and many other decentralized systems, but its purpose is simple: to create a trustworthy record of information without needing a central authority like a bank or government to verify it.

At its most basic level, a blockchain is a digital ledger maintained by a decentralized network of computers.

Let's break down the main parts that make this system work.

The Building Blocks

A blockchain is made of three key components: blocks, nodes, and transactions.

Transaction

noun

An action or a piece of data recorded on the blockchain. In the case of cryptocurrency, it’s the transfer of value from one digital wallet to another.

Multiple transactions are bundled together into a block. Each block contains the transaction data, a unique identifying code called a hash, and the hash of the previous block. Linking blocks together using these hashes creates the “chain.” This connection makes the entire history verifiable and secure. If someone tried to alter an old block, its hash would change, breaking the chain and immediately signaling that something is wrong.

Nodes are the individual computers that form the network. Each node holds a full copy of the blockchain. When a new block is created, it's broadcast to all nodes. The nodes then check the block to make sure it's valid before adding it to their copy of the ledger. This distribution is what makes a blockchain decentralized. No single person or company is in control.

Agreeing on the Truth

With thousands of nodes in a network, how do they all agree on which new blocks are valid? This is solved through a consensus mechanism. It’s a set of rules that ensures everyone is on the same page and that new blocks are added to the chain in a fair and secure way.

The two most common mechanisms are Proof of Work (PoW) and Proof of Stake (PoS).

FeatureProof of Work (PoW)Proof of Stake (PoS)
How it worksNodes (miners) compete to solve a complex math problem.Nodes (validators) are chosen to create new blocks based on the amount of cryptocurrency they've locked up, or “staked.”
Energy UseVery high, as it requires immense computing power.Much lower, as it doesn't rely on solving computational puzzles.
ExampleBitcoinEthereum (post-Merge), Cardano
SecuritySecured by the cost of computational power.Secured by the economic value staked by validators.

Both systems are designed to make it extremely difficult and expensive for anyone to cheat. To successfully add a fraudulent block, a bad actor would need to control a massive portion of the network's computing power (in PoW) or staked currency (in PoS).

Beyond Currency

Blockchains can do more than just record transactions. They can also run code. This is where smart contracts come in.

Smart contract

noun

A program stored on a blockchain that automatically runs when predetermined conditions are met. It’s a bit like a digital vending machine: you put in a coin (data or cryptocurrency), and the machine automatically dispenses your snack (the contract's outcome).

Smart contracts allow developers to create decentralized applications (dApps) that run without any intermediaries. For example, a smart contract could be used to automatically release funds to a freelance worker once their project is marked as complete, or to manage voting in a transparent and tamper-proof way.

Because they run on a decentralized network, smart contracts are unstoppable and censorship-resistant. Once deployed, they will execute exactly as written.

These fundamental concepts, from the structure of blocks to the logic of smart contracts, are the bedrock of everything built on blockchain technology. Now, let's review these key ideas.

Ready to check your understanding?

Quiz Questions 1/6

What is the primary function of a blockchain?

Quiz Questions 2/6

If someone tries to alter the data within a single block, what key element breaks the chain's integrity?

Understanding these core principles is the first step toward grasping more advanced topics like Layer 1 and Layer 2 solutions, which build upon this foundational architecture.