Blockchain Basics: A Beginner’s Guide to How It All Works

Shivang KumarShivang Kumar
6 min read

Introduction

Blockchain is more than just a buzzword – it’s the backbone of technologies like Bitcoin, Ethereum, and countless other decentralized applications. In this blog, we’ll break down the core concepts of blockchain in simple terms, helping beginners understand how it works and why it's such a big deal.

A Brief History of Blockchain

Many of you may have heard of Bitcoin. Blockchain became popular when Bitcoin was introduced in 2009 by someone using the name Satoshi Nakamoto. Bitcoin was the first digital money to use blockchain, allowing people to send money to each other directly without needing a bank. Because there will only ever be a limited number of Bitcoins — similar to a limited amount of gold — people often call it "Digital Gold."

Bitcoin was designed as a decentralized, peer-to-peer digital currency — a form of censorship-resistant finance.

In simple terms, Bitcoin lets anyone send money to anyone else, without needing permission, and without being controlled by any single group.

Example: No one can stop you from sending or receiving Bitcoin. Banks or governments can freeze your accounts, but with Bitcoin, your money is truly yours and can’t be blocked, reversed, or controlled. That’s what makes it so powerful.

A few years after Bitcoin’s creation, Vitalik Buterin and others founded Ethereum, which builds upon the blockchain infrastructure but with additional capabilities. With Ethereum, you can create decentralized transactions, organizations, and agreements without a centralized intermediary. This was made possible through smart contracts.

What is a Blockchain?

A blockchain is a distributed ledger — basically, a record of transactions — that is:

  • Decentralized: No central authority controls it.

  • Immutable: Data can’t be changed easily.

  • Transparent: Everyone on the network can verify transactions.

Think of it as a digital notebook that’s shared across thousands of computers. Once a note (or transaction) is added, it can’t be erased or altered.

How Does Blockchain Work?

  1. A transaction is requested (e.g., you send some Ethereum or any cryptocurrency).

  2. The transaction is broadcast to a peer-to-peer (P2P) network.

  3. The network validates the transaction using consensus mechanisms (like Proof of Work or Proof of Stake).

  4. Once verified, the transaction is added to a block.

  5. The new block is linked to the previous block, forming a chain of blocks.

You can get a live experience through a blockchain demo.

What’s Inside a Block?

  • Data: Info about transactions (like who sent how much to whom).

  • Timestamp: The exact time the block was created.

  • Hash of the block: A unique digital fingerprint for that block.

  • Hash of the previous block: Links this block to the one before it, forming the chain.

  • Nonce: A special number that miners change to help find a valid block hash.

Why is Blockchain Considered Secure?

  • Cryptographic hashing ensures data integrity: It uses special codes (called hashes) to lock the data, so once it's added, it can’t be easily changed.

  • Consensus mechanisms prevent fraud: The network agrees on each transaction before adding it, which helps stop fake or false data.

  • Decentralization removes a single point of failure: There’s no central server to attack or shut down — many computers (nodes) work together to keep things running.

  • Transparency allows anyone to verify transactions: Everyone on the network can see and check transactions, which makes it very hard to cheat.

  • Altering data would require changing all blocks after it: Once something is on the blockchain, changing it means changing every block that comes after — and controlling most of the network — which is nearly impossible.

Important Terms to Know

1. Smart Contract

Almost everything in life involves some kind of promise or agreement. But traditional contracts often rely on trust, which can be broken.

Real-Life Example: In the 80s and 90s, McDonald’s ran a Monopoly game promising prizes to customers. But it was later exposed that insiders rigged the game, breaking that trust.

How Smart Contracts Help: Smart contracts are like digital agreements written in code. They automatically run when certain conditions are met — no need for middlemen or someone to approve things.

Think of it like math: 1 + 1 = 2, always. It can’t be 4. It can’t be anything else. Smart contracts work the same way — they follow logic that can’t be changed or cheated once deployed.

If McDonald’s had used a smart contract for their game:

  • The rules would be written in code for everyone to see.

  • The contract would run automatically and fairly for all.

  • No one — not even McDonald’s — could secretly change the rules after the game started.

2. Oracle

Smart contracts face a significant limitation – they cannot access data from the real world.

A blockchain oracle is like a messenger that brings real-world data (like weather, sports scores, or prices) to smart contracts.

Example: A weather oracle can tell a smart contract how much it rained. If the rainfall is below a certain level, the smart contract can automatically pay crop insurance to farmers.

The Oracle Problem: Since smart contracts rely on oracles for real-world data, there's a risk: What if the data from the oracle is wrong, fake, or manipulated?

This is called the Oracle Problem — if the oracle lies or fails, the smart contract can make the wrong decision. That’s why building trustworthy and decentralized oracles is super important in Web3.

Chainlink is a popular decentralized oracle network that enables smart contracts to access external data and computation. It’s also blockchain agnostic, meaning it works with any chain.

3. Dapp (Decentralized Application)

A Dapp is an application that runs on a decentralized network, typically a blockchain. It is powered by smart contracts and operates without a central authority.

Example: Uniswap — a decentralized finance application.

4. Hybrid Smart Contract

Hybrid smart contracts combine on-chain code (running on a blockchain) with off-chain data and computations provided by oracles. This allows the contracts to interact with data and systems outside their native blockchain.

Example: A smart contract for insurance that uses real-world data (like weather or flight delays) provided by oracles.

5. Ethereum / EVM (Ethereum Virtual Machine)

Ethereum is a blockchain platform known for its smart contract functionality. The Ethereum Virtual Machine (EVM) is its computation engine that executes smart contracts.

Example: ERC-20 tokens — a standard for creating fungible tokens on Ethereum.

6. Web3

Web3 is a term used to describe the next version of the internet powered by blockchain and smart contracts.

Unlike earlier versions, Web3 is permissionless and relies on decentralized networks rather than centralized servers. This brings in a new era of censorship-resistant and transparent agreements — often called the ownership economy.

Web Evolution:

  • Web1: The permissionless, open-source web with static content.

  • Web2: The permissioned web with dynamic content where companies run your agreements on their servers.

  • Web3: The permissionless, dynamic web powered by decentralized networks where:

    • Agreements and code are run on censorship-resistant networks.

    • Users own a portion of the protocol they interact with — instead of just being the product.

0
Subscribe to my newsletter

Read articles from Shivang Kumar directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shivang Kumar
Shivang Kumar

I'm Shivang - a passionate web developer , turning ideas into real-world applications using React, Node.js, and Express. I'm currently diving into blockchain development, learning Solidity and Foundry to build the decentralized future. I’m also an open source enthusiast, contributing to projects and learning from the global dev community. I write to share my journey, one blog at a time.