Introduction

Web3 and Blockchain

Blockchain is a shared digital record that nobody can quietly change. Web3 is the vision of an internet built on it, where users own their data, money, and digital items. This guide explains both from the basics to the technology.

Start learningStart building

DecentralizedNo single owner or server
TransparentRecords anyone can verify
Tamper proofPast data is hard to change
Owned by usersWallets, tokens, and identity

01 Blockchain

Introduction to Blockchain

Blockchain is a type of database where information is stored in groups called blocks. Each block is linked to the one before it using a digital fingerprint called a hash, which forms a chain. Copies of the chain are kept by thousands of computers (called nodes) around the world, and new blocks are added only when the network agrees they are valid.

KEY POINT

Blockchain solves one big problem: how can strangers agree on a shared record without trusting a bank, a company, or a government to keep it?

A complete overview

Imagine a notebook that records every payment in a town. In a normal system, one trusted person, such as a bank manager, keeps that notebook. Everyone must trust that person not to make mistakes, not to cheat, and not to lose it. A Blockchain replaces that single notebook with thousands of identical copies shared by many computers. When someone makes a payment, the network checks it, groups it with other payments into a block, and adds the block to every copy at the same time. Because every copy must match, nobody can secretly change an old entry. To cheat, a person would have to change the majority of the copies at once, which is extremely difficult and expensive on a large network.

This simple idea first appeared with Bitcoin in 2008 and 2009, as a way to send money online without a bank. Later, platforms like Ethereum added smart contracts, which are programs that run on the Blockchain by themselves. That made it possible to build whole applications, such as lending, games, marketplaces, and voting systems, that no single company controls. Web3 is the name for this wider movement. It imagines an internet where people connect with a wallet instead of a password, own their digital items directly, and take part in the decisions of the platforms they use. The technology is still young and has real problems, including scams, high fees on some networks, confusing tools, and unclear laws. Understanding the basics helps you separate real innovation from hype.

Definition

Blockchain

A distributed, append only digital ledger where records are grouped in blocks, linked by cryptographic hashes, and agreed on by a network instead of a central authority.

Web3

A vision of the internet built on blockchains, where users own and control their identity, data, and assets through wallets and tokens, and where platforms can be run by communities.

What is inside a block

DATA

Transactions

The information being recorded, such as payments, contract calls, or ownership changes.

HASH

Block hash

A unique fingerprint made from the block’s content. Change one letter and the hash changes completely.

PREV

Previous hash

The fingerprint of the block before it. This is what links the blocks into a chain.

TIME

Timestamp

When the block was created, so the order of events is clear.

NONCE

Nonce

A number miners change again and again in Proof of Work until they find a valid hash.

ROOT

Merkle root

A single hash that summarizes every transaction in the block, so each one can be checked quickly.

Why you cannot quietly change the past

If someone edits Block 2, its hash changes. Block 3 still points to the old hash, so the link no longer matches and every other node rejects the change. To hide it, the attacker would have to redo Block 2, Block 3, and every block after, faster than the whole honest network. That is why old records are practically permanent.

Main properties of a Blockchain

Decentralized

No single company or person controls the ledger. Many nodes share the work.

Transparent

On public Blockchains anyone can inspect transactions, usually with a block explorer.

Immutable

Once confirmed, records are extremely hard to alter or remove.

Secure

Cryptography and consensus protect the network from tampering and fraud.

Trustless

You trust the code and the math, not a middleman.

Pseudonymous

You appear as a wallet address, not a name, though activity can be traced.

Types of Blockchains

TypeWho can joinExamples and uses
PublicAnyone can read, send, and take partBitcoin, Ethereum. Open finance and digital assets
PrivateOne organization controls who joinsInternal company records and audits
ConsortiumA group of organizations share controlBanks and supply chain partners, for example Hyperledger Fabric
HybridMix of public and private partsSystems that keep some data private but verify it publicly

02 Key terms

Definitions you need to know

Node
A computer that stores a copy of the blockchain and follows its rules.
Hash
A fixed length fingerprint produced from any data by a hash function such as SHA 256.
Wallet
An app or device that holds your keys. It does not store coins; it proves you control them.
Public key and address
Like an account number you can share so others can send you assets.
Private key
A secret code that signs transactions. Whoever has it controls the assets. Never share it.
Seed phrase
12 or 24 words that can recreate your wallet. Treat it like the master key.
Miner and validator
Participants who check transactions and create new blocks, and who are rewarded for it.
Consensus
The method nodes use to agree on which blocks are valid.
Smart contract
A program stored on a blockchain that runs automatically when its conditions are met.
Gas fee
The fee paid to the network for processing a transaction or running a contract.
Coin and token
A coin runs on its own blockchain, like BTC or ETH. A token is built on another blockchain, like USDT.
NFT
A Non Fungible Token: a unique digital item with provable ownership.
DeFi
Decentralized Finance: lending, trading, and saving through smart contracts.
DAO
Decentralized Autonomous Organization: a group run by rules in code and votes of token holders.
dApp
A decentralized application whose back end runs on a blockchain.
Oracle
A service that brings real world data, like prices, into smart contracts.
Layer 2
A network built on top of a blockchain to make transactions faster and cheaper.
Fork
A change to the rules of a blockchain, or a split into two chains.
Mainnet and testnet
The real network with real value, and a practice network with free test coins.

03 How it works

How Blockchain works

Here is what happens when Alice sends 2 coins to Bob.

  1. Alice starts a transaction

    Her wallet creates a message: “send 2 coins to Bob”. She signs it with her private key, which proves it is really from her without revealing the key.

  2. The transaction is broadcast

    It is sent to the network and waits in a pool of pending transactions, often called the mempool.

  3. Nodes verify it

    Nodes check the signature and confirm Alice has enough balance and has not already spent the coins.

  4. A block is built

    A miner or validator picks pending transactions and groups them into a new block, adding the previous block’s hash.

  5. The network reaches consensus

    Under Proof of Work, miners compete to solve a puzzle. Under Proof of Stake, a validator is chosen based on its stake and others attest that the block is valid.

  6. The block is added

    All nodes add the block to their copy of the chain. The transaction is now recorded.

  7. Confirmations build up

    Each new block on top makes the change harder to reverse. After a few confirmations, Bob can treat the payment as final.

Digital signatures: how keys work

KEY PAIR

Two linked keys

A private key and a public key are created together. The public key is shared, and the private key stays secret.

SIGN

Signing

You sign a transaction with your private key. The result is a signature unique to that message.

VERIFY

Verifying

Anyone can use your public key to check that the signature is valid, but cannot create it.

Consensus mechanisms

MechanismHow it worksStrengthTrade off
Proof of WorkMiners compete to solve a hard puzzle using computing powerVery proven security, used by BitcoinHigh energy use and slower speed
Proof of StakeValidators lock up coins as a stake and are chosen to create blocksFar lower energy use, used by Ethereum since 2022Concerns about wealth concentration
Delegated Proof of StakeToken holders vote for a small set of validatorsFast and scalableFewer validators means more centralization
Proof of AuthorityApproved identities validate blocksQuick and efficient for private networksRelies on trust in the approved group
KEY POINT

Blockchains trade off three goals: decentralization, security, and scalability. Making one stronger often weakens another. This is known as the blockchain trilemma.

04 Web3

Introduction to Web3

Web3 is the idea of a decentralized internet. Instead of large companies owning your account, data, and content, you control them yourself through a wallet, and applications run on open blockchains. In Web3, ownership and rules are written in code, and users can be owners as well as customers.

Web1 vs Web2 vs Web3

EraMain ideaWho owns itExamples
Web1 (about 1990 to 2004)Read only. Static pages you could viewWebsite ownersEarly websites and portals
Web2 (about 2004 to now)Read and write. Social media and user contentBig platforms hold your dataSocial networks, video and shopping sites
Web3 (emerging)Read, write, and own. Users hold assets and identityUsers and communitiesWallets, DeFi, NFTs, DAOs

Core ideas of Web3

OWN

Digital ownership

Items and tokens live in your wallet, not in a company’s database.

IDENTITY

Wallet login

One wallet works across many apps. You decide what to share.

OPEN

Permissionless

Anyone with internet access can use or build on open networks.

TOKENS

Token economies

Tokens reward users, creators, and builders and can give voting power.

COMMUNITY

Community governance

DAOs let members vote on rules and how funds are used.

LINK

Composability

Apps can plug into each other like building blocks, since contracts are open.

The Web3 stack

  1. BlockchainBase layer: Ethereum, Solana, and others record transactions.
  2. Layer 2Faster and cheaper networks on top, like rollups.
  3. StorageIPFS, Arweave, and Filecoin hold files off the chain.
  4. Data and oraclesTools such as The Graph and Chainlink read and feed data.
  5. Wallets and identityMetaMask, hardware wallets, and ENS names.
  6. dAppsThe apps people use: exchanges, games, and marketplaces.

How a Web3 app works

  1. ConnectYou connect a wallet instead of making an account.
  2. RequestThe app asks to read data or send a transaction.
  3. SignYou approve and sign it in your wallet.
  4. ExecuteA smart contract on the blockchain runs the action.
  5. UpdateThe app shows the new state, like your new balance.

05 Roles

Roles of Blockchain and Web3

People and roles inside the network

NODE

Node operators

Store the chain, relay data, and enforce the rules. They keep the network alive and honest.

MINE

Miners and validators

Create new blocks and secure the network, and earn rewards and fees.

BUILD

Developers

Write smart contracts, wallets, and dApps, and improve the protocols.

USE

Users

Hold assets, trade, play, vote, and use applications with their wallets.

LIQUIDITY

Liquidity providers

Deposit tokens into pools so others can trade, and earn a share of the fees.

AUDIT

Auditors and researchers

Review smart contract code to find bugs and weaknesses before attackers do.

DATA

Oracles and indexers

Bring outside data in and organize chain data so apps can use it.

GOVERN

Token holders and DAO members

Vote on upgrades, rules, and use of treasury funds.

RULES

Regulators and exchanges

Set legal rules, and provide on ramps between normal money and crypto.

The role Blockchain plays in the real world

Trust layer

Lets people and companies share records without needing a central referee.

Value transfer

Moves money and assets across borders quickly and at any hour.

Proof and records

Creates tamper resistant proof of ownership, origin, and history.

Automation

Smart contracts carry out agreements automatically when conditions are met.

Inclusion

Gives people without bank access a way to save and send value.

Open innovation

Anyone can build on public protocols without asking for permission.

06 History

The history of Blockchain and Web3

  1. 1991

    Timestamping documents

    Stuart Haber and W. Scott Stornetta describe a way to link timestamped documents with cryptography so that they cannot be changed secretly. This is the seed of the blockchain idea.

  2. 1990s

    Digital cash experiments

    Researchers such as David Chaum work on private digital money, and the cypherpunk community explores cryptography for freedom and privacy.

  3. 1998 and 2004

    Bit gold and reusable proofs

    Nick Szabo proposes bit gold, and Hal Finney builds a reusable proof of work system. Both are important steps toward Bitcoin.

  4. 2008

    The Bitcoin whitepaper

    An author using the name Satoshi Nakamoto publishes “Bitcoin: A Peer to Peer Electronic Cash System” in October 2008.

  5. 2009

    The genesis block

    The Bitcoin network starts in January 2009 with the first block, called the genesis block.

  6. 2010

    The first real purchase

    A programmer pays 10,000 Bitcoin for two pizzas, a famous early example of crypto used as money. It is remembered each year as Bitcoin Pizza Day.

  7. 2011 to 2014

    Altcoins appear

    Projects like Litecoin and Ripple launch, and exchanges grow. The term “Web3” is coined by Ethereum co founder Gavin Wood around 2014.

  8. 2013 to 2015

    Ethereum and smart contracts

    Vitalik Buterin proposes Ethereum in 2013, and it launches in 2015, allowing anyone to run programs on a blockchain.

  9. 2016

    The DAO attack

    A bug in an early DAO lets an attacker take a large amount of funds. It teaches the industry how important code security is.

  10. 2017

    ICO boom and CryptoKitties

    Thousands of projects raise money by selling tokens, and the game CryptoKitties shows early NFTs and network congestion.

  11. 2020

    DeFi summer

    Lending, trading, and yield platforms grow rapidly, bringing financial services to smart contracts.

  12. 2021

    NFT and Web3 boom

    NFTs, play to earn games, and Web3 become mainstream topics, with record trading and a lot of hype.

  13. 2022

    The Merge and market shocks

    Ethereum moves from Proof of Work to Proof of Stake in September 2022, cutting its energy use sharply. The same year, several large platforms collapse, including FTX, and trust takes a hit.

  14. 2023 to 2024

    Layer 2 growth and Bitcoin ETFs

    Rollups make Ethereum cheaper to use. In January 2024 spot Bitcoin exchange traded funds are approved in the United States, and Bitcoin has its halving in April 2024.

  15. 2025 onward

    Stablecoins, regulation, and tokenization

    Governments write clearer rules, stablecoin use grows, and traditional finance explores tokenizing real world assets such as bonds and funds.

07 Technology deep dive

Technology behind it

Smart contracts

A smart contract is code stored on a blockchain. When a condition is met, it runs exactly as written and no one can stop or secretly change it. Ethereum popularized them using the Solidity language and the Ethereum Virtual Machine (EVM). A simple example: “If Bob pays 1 token, send him the digital ticket.”

Layer 1 and Layer 2

Layer 1

The base blockchains like Bitcoin, Ethereum, and Solana. They secure the network and settle final records, but can be slow or costly when busy.

Layer 2

Networks built on top, such as rollups. They process many transactions off the main chain and post a compact proof back, making fees lower and speed higher.

ROLLUP

Optimistic rollups

Assume transactions are valid and allow a challenge period to prove fraud.

ZK

Zero knowledge rollups

Use cryptographic proofs to show transactions are correct without revealing every detail.

BRIDGE

Bridges

Move assets between blockchains. They are useful but have been a frequent target of attacks.

Major Blockchains compared

BlockchainConsensusKnown for
BitcoinProof of WorkThe first and most secure network, seen as digital gold
EthereumProof of StakeThe main smart contract platform with the largest developer community
SolanaProof of Stake with Proof of HistoryVery fast and low cost transactions
BNB ChainProof of Staked AuthorityLow fees and a large user base linked to the Binance ecosystem
PolygonProof of StakeAn Ethereum scaling ecosystem with low fees
AvalancheAvalanche consensusFast finality and custom subnetworks
CardanoOuroboros Proof of StakeA research driven approach to design

Token standards

ERC 20

Fungible tokens

Every unit is the same, like currencies and stablecoins.

ERC 721

Non fungible tokens

Each token is unique, used for art, collectibles, and tickets.

ERC 1155

Multi token standard

One contract can hold both fungible and unique items, common in games.

Wallets and keys

Wallet typeWho holds the keysNotes
Non custodial software walletYouApps like MetaMask. Convenient, but keep your seed phrase offline
Hardware walletYou, on a physical deviceKeys stay on the device. The safest option for larger amounts
Custodial walletAn exchange or companyEasy to recover, but you rely on the company

Gas fees

Every action on a blockchain uses computing and storage, so users pay a fee. The fee rises when the network is busy because users compete for limited space in each block. Layer 2 networks and faster chains help keep fees low.

Decentralized storage

Storing large files on a blockchain is costly, so Web3 apps keep only a small reference (a hash) on chain and store the file in systems like IPFS, Arweave, or Filecoin. The hash proves the file has not been changed.

08 Uses

Real world use cases

FINANCE

DeFi

Lend, borrow, trade, and earn through smart contracts, with no bank in the middle.

PAYMENTS

Payments and remittances

Send money across borders quickly, often with lower cost, especially using stablecoins.

SUPPLY

Supply chains

Track goods from origin to shelf, proving where food, medicine, or luxury items came from.

IDENTITY

Digital identity

Own and share verified credentials such as degrees without exposing all your data.

HEALTH

Healthcare records

Share medical history securely between hospitals, with patient permission.

VOTE

Voting

Researchers explore tamper resistant, auditable voting systems, though security and privacy remain hard problems.

ASSETS

Real world asset tokenization

Represent property, bonds, or funds as tokens so they can be traded in small parts.

CREATOR

Creators and NFTs

Artists and musicians sell directly to fans and can earn royalties on resales.

GAMES

Gaming

Players truly own items and can trade them, though many early games were more hype than fun.

DAO

Community organizations

Online groups pool funds and vote on how to use them with open rules.

GIVING

Charity transparency

Donors can see on chain how funds move and are spent.

GOV

Land and public records

Governments pilot blockchain registries to reduce fraud and paperwork.

Benefits and challenges

Benefits

  • Transparency and tamper resistant records
  • Less need for middlemen and paperwork
  • Open access for anyone with internet
  • Users control their assets and identity
  • Programmable money and automatic agreements

Challenges

  • Scalability and fees on busy networks
  • Complex tools that confuse beginners
  • Scams, hacks, and smart contract bugs
  • Unclear or changing laws in many countries
  • Mistakes are hard to undo, such as lost keys

09 Safety

Risks, scams, and staying safe

IMPORTANT

No one can reverse a blockchain transaction for you. If you send to a wrong address, or a scammer gets your keys, the money is usually gone. Never share your seed phrase or private key with anyone. Real support teams never ask for it.

Phishing and fake sites

Fake websites copy real apps to steal wallet access. Check the address carefully and use bookmarks.

Rug pulls

Creators of a new token take the money and disappear. Be careful with anonymous teams and promises of huge returns.

Fake airdrops and giveaways

Messages offering free tokens often lead to malicious links or approvals.

Dangerous approvals

Signing a bad permission can let a contract drain your tokens. Read what you approve.

Smart contract bugs

Code errors have caused big losses. Prefer audited and long running projects.

Market risk

Crypto prices can rise and fall sharply. Only use money you can afford to lose.

Safety checklist

  1. BackupWrite your seed phrase on paper and store it offline.
  2. SeparateKeep a small wallet for trying apps and a safe wallet for savings.
  3. VerifyCheck links, contract addresses, and project details.
  4. TestSend a small amount first before large transfers.
  5. SecureUse strong passwords, two factor login, and a hardware wallet for larger sums.

Rules and taxes

Laws about crypto differ by country and change often. In India, for example, income from virtual digital assets is taxed and some transactions attract TDS. Always check the latest official rules and talk to a qualified tax professional before you trade or invest.

Environmental impact

Proof of Work networks use a lot of electricity. Proof of Stake uses far less. Ethereum’s move to Proof of Stake in 2022 reduced its energy use dramatically.

10 Build and learn

How to start in Web3 and blockchain

If you are a user

  1. Learn the basics first

    Understand wallets, keys, and fees before you put in money.

  2. Create a wallet

    Install a trusted wallet and write down the seed phrase offline.

  3. Practice on a testnet

    Use free test coins to send, swap, and try apps with no risk.

  4. Start small and stay careful

    Use reputable platforms, test with small amounts, and never rush.

If you are a developer

NeedTools
LanguagesSolidity for Ethereum and EVM chains, Rust for Solana, JavaScript or TypeScript for front ends, Python for scripts
Dev frameworksHardhat, Foundry, Remix online editor
Librariesethers.js, viem, web3.js, OpenZeppelin contracts
Wallets and connectionMetaMask, WalletConnect, RainbowKit
Node accessAlchemy, Infura, QuickNode, or your own node
DataThe Graph, block explorers like Etherscan
StorageIPFS, Arweave, Filecoin
TestingTestnets, local chains, and security tools such as Slither

A simple smart contract (Solidity)

/* SPDX-License-Identifier: MIT */
pragma solidity ^0.8.20;

contract SimpleStorage {
    uint256 private number;

    function store(uint256 newNumber) public {
        number = newNumber;
    }

    function retrieve() public view returns (uint256) {
        return number;
    }
}

This contract stores one number on the blockchain. Anyone can call store to change it and retrieve to read it. You can try it for free in the Remix online editor on a test network.

Build a tiny Blockchain in Python

import hashlib, time

class Block:
    def __init__(self, index, data, prev_hash):
        self.index = index
        self.time = time.time()
        self.data = data
        self.prev_hash = prev_hash
        self.hash = self.make_hash()

    def make_hash(self):
        text = f"{self.index}{self.time}{self.data}{self.prev_hash}"
        return hashlib.sha256(text.encode()).hexdigest()

chain = [Block(0, "Genesis block", "0")]
chain.append(Block(1, "Alice pays Bob 5", chain[-1].hash))
chain.append(Block(2, "Bob pays Carol 2", chain[-1].hash))

for b in chain:
    print(b.index, b.hash[:12], "prev:", b.prev_hash[:12])

Each block stores the previous block’s hash. Change any data and the hashes stop matching. This is the heart of a blockchain, without the network, the consensus, and the security of a real one.

Learning roadmap

  1. Month 1Blockchain basics, wallets, and hashing. Use a testnet.
  2. Month 2Learn JavaScript and Python basics.
  3. Month 3Learn Solidity and deploy a contract with Remix.
  4. Month 4Use Hardhat or Foundry, and write tests.
  5. Month 5Build a dApp front end that connects to a wallet.
  6. Month 6Learn security basics and publish a portfolio project.

Careers in the field

Smart contract developer

Writes and tests contracts for apps and protocols.

Blockchain engineer

Builds and maintains networks, nodes, and core software.

Security auditor

Finds weaknesses in contracts and protects funds.

Web3 front end developer

Builds the websites and apps users connect to with wallets.

Analyst and researcher

Studies on chain data, tokenomics, and market trends.

Community and product roles

Grows communities, designs products, and runs DAOs.

11 FAQ

Frequently asked questions

Are blockchain and Bitcoin the same?

No. Blockchain is the technology. Bitcoin is the first and best known cryptocurrency that uses it. Many other blockchains and uses exist.

What is the difference between Web3 and blockchain?

Blockchain is the underlying technology. Web3 is the idea of an internet built on it, with apps, wallets, tokens, and community ownership.

Is blockchain completely secure?

The core design is very secure, but apps built on top can have bugs, and users can lose funds to scams or lost keys. Security depends on the whole system.

Is blockchain anonymous?

It is pseudonymous. Your address is public and transactions can often be traced and linked to you, especially through exchanges.

Can data on a blockchain be deleted?

Almost never. That is why you should avoid putting personal or sensitive data directly on a public chain.

Do I need crypto to learn about Web3?

No. You can learn the concepts, practice with test networks, and build projects without spending money.

Is Web3 just hype?

Parts of it were. Real uses exist in payments, finance, and digital ownership, but many projects fail. Be curious and careful, and judge each project on what it actually does.