Part of the complete guide: Crypto lottery: the complete guide
Blocks and hashes
A block is a batch of transactions plus some bookkeeping, including the hash of the previous block. A hash is a short fingerprint of data: change one character in the data and the fingerprint changes completely. Because each block contains the previous block's hash, altering any old block changes its hash, which would break the link in the next block, and the next, all the way to the end. To rewrite history, an attacker would have to redo all that work faster than the honest network adds new blocks. See our guide to SHA-256 hashes.
Consensus: how strangers agree
Either way, the rules make cheating expensive and honesty profitable, and everyone can check the result.
| Method | How the next block is chosen | Used by |
|---|---|---|
| Proof of work | Miners compete to solve a hard puzzle; the winner proposes the block | Bitcoin |
| Proof of stake | Validators who have locked up coins are chosen to propose and confirm blocks, and can lose their stake for cheating | Ethereum since 2022 and many others |
What a blockchain is good for
- A public, tamper-resistant record of who owns what.
- Transfers of value without a bank, between strangers anywhere.
- Programs that run exactly as written and whose history anyone can inspect.
- Systems that need public verification, like a lottery that publishes every ticket and result.
What it is not good for
- Speed and cost at huge scale. Base chains are slower and pricier than centralized databases, which is why layer-2 networks exist.
- Private information. Records are public by default.
- Truth about the real world. A blockchain can record that someone claimed something, not whether it is true.
- Undoing mistakes. Transactions are final.
Layer 1, layer 2 and why fees differ
The base blockchains (layer 1), such as Bitcoin and Ethereum, are secure but have limited capacity, so fees rise when demand is high. Layer-2 networks such as Arbitrum process transactions on their own and post compact summaries back to the base chain, which keeps them secure and makes fees much lower. That is why we use Arbitrum for wallet payments. See Arbitrum for beginners.
Example: tracing a payment through a blockchain
- 1Alice sends 10 USDC to a lottery address. Her wallet signs the message with her private key and broadcasts it.
- 2Nodes on the network check that Alice has 10 USDC and that the signature is valid.
- 3The transaction waits in a pool and a block producer includes it in the next block.
- 4Other nodes verify the block and add it to their copy of the chain. Alice's balance falls by 10 and the lottery's rises by 10.
- 5As more blocks are added, the transaction becomes harder and harder to reverse. After a few confirmations it is considered final.
Reading a transaction on a block explorer
- The hash: a unique ID for the transaction, which you can search for.
- From and to: the sending and receiving addresses.
- Value and token: what was moved.
- Status and confirmations: whether it succeeded and how deeply it is buried.
- Fee: what was paid to the network.
Ready?
A weekly draw you can check yourself.
$5 tickets, a public random value, and every result published with the data to recompute it.
Frequently asked questions
What is a blockchain in simple words?
A shared record book kept by many computers, in which changing an old entry would be noticed by everyone.
Can a blockchain be hacked?
The base protocols have proved very hard to attack, but apps, exchanges, wallets and bridges built on top get hacked often.
Is a blockchain the same as Bitcoin?
No. Bitcoin is a cryptocurrency that runs on a blockchain. The technology is used for many things.
Who controls a blockchain?
No single party. Rules are set by software that participants choose to run.
Why is a blockchain hard to change?
Each block includes the hash of the previous one, so changing an old block breaks the link to all later blocks.
Is blockchain the same as a database?
It is a special kind of shared database with rules that make past entries very hard to alter.
Do all blockchains use mining?
No. Many use proof of stake, in which validators lock up coins instead.