How Blockchain Works

    Module 1 · Lesson 2 of 9

    How Blockchain Works

    10 min readUpdated

    Understand the technology behind cryptocurrency: the blockchain.

    Goal

    Understand how blockchain works, in plain English, so you know why crypto transactions take time, what "confirmations" mean, and why nobody can cheat the system.

    Mistake This Prevents

    Sending crypto and panicking when it doesn't arrive instantly. "Pending" is normal: your transaction is being verified by the network.

    Bitcoin · The chain

    Each block points back.

    A block groups transactions. Its hash is a digital fingerprint, stored again in the next block.

    1. Block #101
      Data · example transaction
      Asha → Dev · 0.01 BTC
      Prev. hash
      84c1a9d2…
      This hash
      a3f9c2d1…
    2. Block #102
      Data · example transaction
      Dev → Mira · 0.004 BTC
      Prev. hash
      a3f9c2d1…
      This hash
      7b2d815f…
    3. Block #103
      Data · example transaction
      Mira → Ravi · 0.002 BTC
      Prev. hash
      7b2d815f…
      This hash
      e1f44ca2…

    Match “This hash” to the next block’s “Prev. hash”. Illustrative transactions and shortened hashes.

    What if a record changes?

    Changing a transaction changes the block’s fingerprint. The next block’s saved hash no longer matches. Rewriting Bitcoin’s history requires rebuilding the affected blocks and their proof of work.

    Think of It Like This

    Imagine a notebook that records every transaction ever made. Now imagine:

    • Thousands of people around the world each have an identical copy of this notebook

    • Every 10 minutes, a new page (called a "block") is added with the latest transactions

    • Each page has a unique stamp (called a "hash") that's based on what's written on it AND the stamp of the previous page

    • If someone tries to change what's written on an old page, the stamp won't match anymore, and everyone else's copies will reject it

    That's blockchain. It's just a shared notebook that nobody can secretly edit because thousands of people are all watching and comparing copies.

    Why is it called "block-chain"? Because each page (block) is linked to the previous one through those stamps, forming a chain. Change one link and the whole chain after it breaks.

    Bitcoin · A transfer

    From wallet to first confirmation.

    Sending starts the process. Inclusion in a block is the next milestone.

    1. 01 · SEND

      Your wallet signs

      It authorises the transaction and broadcasts it to the network.

    2. 02 · PENDING

      Waiting for a block

      Nodes check the transaction. Accepted, unconfirmed transactions wait in their mempools.

    3. 03 · INCLUDED

      First confirmation

      A miner includes it in a block. When the network accepts the block, it has one confirmation.

    1 confirmation2 confirmations3 confirmations

    Each new block after it adds another confirmation. Timing and required confirmations vary.

    Does pending mean it failed?

    Pending means the transaction is not in a block yet. It may still confirm later. More confirmations increase confidence, but no fixed count makes a Bitcoin payment risk-free.

    How Your Transaction Actually Works

    Let's say you send Bitcoin to a friend. Here's what happens behind the scenes:

    Step 1: You hit "Send" Your wallet creates a message: "Send 0.01 BTC from my address to my friend's address." It signs this with your private key (like a digital signature that proves it's you).

    Step 2: It goes into the waiting room Your transaction joins a queue called the "mempool". Think of it as a waiting room full of other pending transactions from around the world.

    Step 3: A miner picks it up Miners are powerful computers that grab transactions from the waiting room, bundle them into a block, and race to solve a math puzzle. The first miner to solve it gets to add the block to the chain (and earns a reward).

    Step 4: First confirmation Once your block is added to the chain, your transaction has 1 confirmation. It's now recorded permanently.

    Step 5: More blocks pile on Every new block added on top of yours = one more confirmation. Most exchanges wait for 3 to 6 confirmations before they consider your Bitcoin fully received. For Bitcoin, that takes roughly 30–60 minutes.

    Why wait for multiple confirmations? Each new block makes it exponentially harder for anyone to go back and tamper with yours. By 6 confirmations, it's essentially impossible.

    Two Ways to Secure the Chain

    Different blockchains use different methods to decide who gets to add the next block:

    Proof of Work (Bitcoin). Miners compete to solve a math puzzle. It's like a lottery where the more computing power you have, the more tickets you get. Uses a lot of electricity but is extremely secure.

    Proof of Stake (Ethereum). Instead of solving puzzles, validators put up their own ETH as collateral ("staking"). If they try to cheat, they lose their stake. Uses 99% less energy than Proof of Work.

    Fees: Why You Pay to Send Crypto

    Every transaction has a small fee that goes to the miners/validators who process it. Think of it like paying postage to send a letter.

    • Higher fee = faster delivery. When the network is busy, paying a higher fee moves you to the front of the queue.

    • Bitcoin fees are usually ₹100–₹1,000

    • Ethereum fees (called "gas") can spike during busy periods, sometimes ₹2,000–₹5,000 for a single transaction

    India tip: When you buy crypto on an Indian exchange, the exchange handles the blockchain stuff for you. You only pay network fees when you withdraw to your own wallet.

    Interactive Blockchain DemoTry editing a block's data!

    Each block's hash depends on its data + the previous block's hash. Try changing any block's transaction data and watch how the chain breaks: every block after it becomes invalid.

    Block #1VALID

    Ravi sends 0.5 BTC to Priya

    00000000

    1ed83095

    Block #2VALID

    Priya sends 0.2 BTC to Amit

    1ed83095

    770be771

    Block #3VALID

    Amit sends 0.1 BTC to Ravi

    770be771

    b8206eec

    Key insight: On the real Bitcoin network, re-mining all blocks would require more computing power than all the world's supercomputers combined. That's what makes blockchain tamper-proof.

    Try It Yourself

    The demo above shows a mini blockchain with 3 blocks. Try clicking a block and changing its transaction data, and watch how the hash changes and breaks every block that comes after it. This is exactly why blockchain is tamper-proof.

    Real Example

    In May 2021, Ethereum gas fees peaked at ₹8,000+ per transaction during the DeFi boom. Many Indian users paid more in fees than their actual transaction amount. Lesson: always check the network fee before sending. If it's unusually high, wait a few hours for congestion to ease.

    Checklist

    • You can explain blockchain to a friend using the "shared notebook" analogy

    • You understand why transactions need confirmations (and why 6 is the magic number)

    • You know the difference between Proof of Work and Proof of Stake

    • You understand why fees vary and when to avoid sending during peak times

    Common Mistakes

    • Sending crypto and refreshing every 10 seconds. Bitcoin confirmations take 10 minutes each, so relax

    • Setting the transaction fee too low and having it stuck for hours

    • Confusing the blockchain network fee with the exchange's trading fee, which are completely different things

    Key takeaways

    What to remember

    1. A blockchain is a chain of blocks, each containing transactions, copied across thousands of computers.
    2. Bitcoin requires 3–6 confirmations before most exchanges credit your deposit.
    3. Proof of Work (Bitcoin) and Proof of Stake (Ethereum) are the two main consensus mechanisms.
    4. Transaction fees go to miners/validators, and higher fees mean faster processing.
    Lesson quiz

    Quiz

    Question 1 of 3

    Pass: 3 of 3 correct

    Question 1 of 3

    Why can a confirmed blockchain transaction not be reversed?

    Keep your place

    Save this lesson and continue tomorrow.

    Create an account to mark lessons complete, build a daily practice streak, and use paper trading with $10,000 in virtual capital.

    Free forever No card required Continue from any device

    Up Next

    Types of Crypto Assets

    Continue