Transactions
The information being recorded, such as payments, contract calls, or ownership changes.
Introduction
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.
01 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.
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?
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.
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.
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.
The information being recorded, such as payments, contract calls, or ownership changes.
A unique fingerprint made from the block’s content. Change one letter and the hash changes completely.
The fingerprint of the block before it. This is what links the blocks into a chain.
When the block was created, so the order of events is clear.
A number miners change again and again in Proof of Work until they find a valid hash.
A single hash that summarizes every transaction in the block, so each one can be checked quickly.
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.
No single company or person controls the ledger. Many nodes share the work.
On public Blockchains anyone can inspect transactions, usually with a block explorer.
Once confirmed, records are extremely hard to alter or remove.
Cryptography and consensus protect the network from tampering and fraud.
You trust the code and the math, not a middleman.
You appear as a wallet address, not a name, though activity can be traced.
| Type | Who can join | Examples and uses |
|---|---|---|
| Public | Anyone can read, send, and take part | Bitcoin, Ethereum. Open finance and digital assets |
| Private | One organization controls who joins | Internal company records and audits |
| Consortium | A group of organizations share control | Banks and supply chain partners, for example Hyperledger Fabric |
| Hybrid | Mix of public and private parts | Systems that keep some data private but verify it publicly |
02 Key terms
03 How it works
Here is what happens when Alice sends 2 coins to Bob.
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.
It is sent to the network and waits in a pool of pending transactions, often called the mempool.
Nodes check the signature and confirm Alice has enough balance and has not already spent the coins.
A miner or validator picks pending transactions and groups them into a new block, adding the previous block’s hash.
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.
All nodes add the block to their copy of the chain. The transaction is now recorded.
Each new block on top makes the change harder to reverse. After a few confirmations, Bob can treat the payment as final.
A private key and a public key are created together. The public key is shared, and the private key stays secret.
You sign a transaction with your private key. The result is a signature unique to that message.
Anyone can use your public key to check that the signature is valid, but cannot create it.
| Mechanism | How it works | Strength | Trade off |
|---|---|---|---|
| Proof of Work | Miners compete to solve a hard puzzle using computing power | Very proven security, used by Bitcoin | High energy use and slower speed |
| Proof of Stake | Validators lock up coins as a stake and are chosen to create blocks | Far lower energy use, used by Ethereum since 2022 | Concerns about wealth concentration |
| Delegated Proof of Stake | Token holders vote for a small set of validators | Fast and scalable | Fewer validators means more centralization |
| Proof of Authority | Approved identities validate blocks | Quick and efficient for private networks | Relies on trust in the approved group |
Blockchains trade off three goals: decentralization, security, and scalability. Making one stronger often weakens another. This is known as the blockchain trilemma.
04 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.
| Era | Main idea | Who owns it | Examples |
|---|---|---|---|
| Web1 (about 1990 to 2004) | Read only. Static pages you could view | Website owners | Early websites and portals |
| Web2 (about 2004 to now) | Read and write. Social media and user content | Big platforms hold your data | Social networks, video and shopping sites |
| Web3 (emerging) | Read, write, and own. Users hold assets and identity | Users and communities | Wallets, DeFi, NFTs, DAOs |
Items and tokens live in your wallet, not in a company’s database.
One wallet works across many apps. You decide what to share.
Anyone with internet access can use or build on open networks.
Tokens reward users, creators, and builders and can give voting power.
DAOs let members vote on rules and how funds are used.
Apps can plug into each other like building blocks, since contracts are open.
05 Roles
Store the chain, relay data, and enforce the rules. They keep the network alive and honest.
Create new blocks and secure the network, and earn rewards and fees.
Write smart contracts, wallets, and dApps, and improve the protocols.
Hold assets, trade, play, vote, and use applications with their wallets.
Deposit tokens into pools so others can trade, and earn a share of the fees.
Review smart contract code to find bugs and weaknesses before attackers do.
Bring outside data in and organize chain data so apps can use it.
Vote on upgrades, rules, and use of treasury funds.
Set legal rules, and provide on ramps between normal money and crypto.
Lets people and companies share records without needing a central referee.
Moves money and assets across borders quickly and at any hour.
Creates tamper resistant proof of ownership, origin, and history.
Smart contracts carry out agreements automatically when conditions are met.
Gives people without bank access a way to save and send value.
Anyone can build on public protocols without asking for permission.
06 History
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.
Researchers such as David Chaum work on private digital money, and the cypherpunk community explores cryptography for freedom and privacy.
Nick Szabo proposes bit gold, and Hal Finney builds a reusable proof of work system. Both are important steps toward Bitcoin.
An author using the name Satoshi Nakamoto publishes “Bitcoin: A Peer to Peer Electronic Cash System” in October 2008.
The Bitcoin network starts in January 2009 with the first block, called the genesis block.
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.
Projects like Litecoin and Ripple launch, and exchanges grow. The term “Web3” is coined by Ethereum co founder Gavin Wood around 2014.
Vitalik Buterin proposes Ethereum in 2013, and it launches in 2015, allowing anyone to run programs on a blockchain.
A bug in an early DAO lets an attacker take a large amount of funds. It teaches the industry how important code security is.
Thousands of projects raise money by selling tokens, and the game CryptoKitties shows early NFTs and network congestion.
Lending, trading, and yield platforms grow rapidly, bringing financial services to smart contracts.
NFTs, play to earn games, and Web3 become mainstream topics, with record trading and a lot of hype.
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.
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.
Governments write clearer rules, stablecoin use grows, and traditional finance explores tokenizing real world assets such as bonds and funds.
07 Technology deep dive
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.”
The base blockchains like Bitcoin, Ethereum, and Solana. They secure the network and settle final records, but can be slow or costly when busy.
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.
Assume transactions are valid and allow a challenge period to prove fraud.
Use cryptographic proofs to show transactions are correct without revealing every detail.
Move assets between blockchains. They are useful but have been a frequent target of attacks.
| Blockchain | Consensus | Known for |
|---|---|---|
| Bitcoin | Proof of Work | The first and most secure network, seen as digital gold |
| Ethereum | Proof of Stake | The main smart contract platform with the largest developer community |
| Solana | Proof of Stake with Proof of History | Very fast and low cost transactions |
| BNB Chain | Proof of Staked Authority | Low fees and a large user base linked to the Binance ecosystem |
| Polygon | Proof of Stake | An Ethereum scaling ecosystem with low fees |
| Avalanche | Avalanche consensus | Fast finality and custom subnetworks |
| Cardano | Ouroboros Proof of Stake | A research driven approach to design |
Every unit is the same, like currencies and stablecoins.
Each token is unique, used for art, collectibles, and tickets.
One contract can hold both fungible and unique items, common in games.
| Wallet type | Who holds the keys | Notes |
|---|---|---|
| Non custodial software wallet | You | Apps like MetaMask. Convenient, but keep your seed phrase offline |
| Hardware wallet | You, on a physical device | Keys stay on the device. The safest option for larger amounts |
| Custodial wallet | An exchange or company | Easy to recover, but you rely on the company |
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.
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
Lend, borrow, trade, and earn through smart contracts, with no bank in the middle.
Send money across borders quickly, often with lower cost, especially using stablecoins.
Track goods from origin to shelf, proving where food, medicine, or luxury items came from.
Own and share verified credentials such as degrees without exposing all your data.
Share medical history securely between hospitals, with patient permission.
Researchers explore tamper resistant, auditable voting systems, though security and privacy remain hard problems.
Represent property, bonds, or funds as tokens so they can be traded in small parts.
Artists and musicians sell directly to fans and can earn royalties on resales.
Players truly own items and can trade them, though many early games were more hype than fun.
Online groups pool funds and vote on how to use them with open rules.
Donors can see on chain how funds move and are spent.
Governments pilot blockchain registries to reduce fraud and paperwork.
09 Safety
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.
Fake websites copy real apps to steal wallet access. Check the address carefully and use bookmarks.
Creators of a new token take the money and disappear. Be careful with anonymous teams and promises of huge returns.
Messages offering free tokens often lead to malicious links or approvals.
Signing a bad permission can let a contract drain your tokens. Read what you approve.
Code errors have caused big losses. Prefer audited and long running projects.
Crypto prices can rise and fall sharply. Only use money you can afford to lose.
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.
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
Understand wallets, keys, and fees before you put in money.
Install a trusted wallet and write down the seed phrase offline.
Use free test coins to send, swap, and try apps with no risk.
Use reputable platforms, test with small amounts, and never rush.
| Need | Tools |
|---|---|
| Languages | Solidity for Ethereum and EVM chains, Rust for Solana, JavaScript or TypeScript for front ends, Python for scripts |
| Dev frameworks | Hardhat, Foundry, Remix online editor |
| Libraries | ethers.js, viem, web3.js, OpenZeppelin contracts |
| Wallets and connection | MetaMask, WalletConnect, RainbowKit |
| Node access | Alchemy, Infura, QuickNode, or your own node |
| Data | The Graph, block explorers like Etherscan |
| Storage | IPFS, Arweave, Filecoin |
| Testing | Testnets, local chains, and security tools such as Slither |
/* 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.
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.
Writes and tests contracts for apps and protocols.
Builds and maintains networks, nodes, and core software.
Finds weaknesses in contracts and protects funds.
Builds the websites and apps users connect to with wallets.
Studies on chain data, tokenomics, and market trends.
Grows communities, designs products, and runs DAOs.
11 FAQ
No. Blockchain is the technology. Bitcoin is the first and best known cryptocurrency that uses it. Many other blockchains and uses exist.
Blockchain is the underlying technology. Web3 is the idea of an internet built on it, with apps, wallets, tokens, and community ownership.
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.
It is pseudonymous. Your address is public and transactions can often be traced and linked to you, especially through exchanges.
Almost never. That is why you should avoid putting personal or sensitive data directly on a public chain.
No. You can learn the concepts, practice with test networks, and build projects without spending money.
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.