Chain LabLearn how a blockchain remembers
Interactive lab · no wallet needed

See how a blockchain remembers

Every block is a few lines of data and one fingerprint. Change a single letter and the fingerprint breaks. Try it below, right in your browser.

Mine a block

A block counts as valid when its hash starts with enough zeros. The only way to get there is to try nonce after nonce. That search is what miners do.

Block #1INVALID
Prev hash
Hash
…

Difficulty: zeros at the start

Each extra zero makes the search about 16 times longer. Bitcoin today needs around 19 of them.

Tries0
Hash/s0
Time0.0s

Decode a real transaction

Paste a transaction ID from Bitcoin or Ethereum. The data comes from the real network through a public API. No wallet, no keys.

Try:

What you will learn

Four ideas carry the whole technology. Each one has a hands-on step in the course.

SHA-256

Hashing

A fixed-length fingerprint of any data. Same input, same hash. One changed letter, a completely different hash.

prev → hash

Immutability

Each block stores the hash of the one before it. Edit an old block and every block after it breaks.

PoW · PoS

Consensus

Thousands of computers keep copies and agree on one history without trusting each other.

ERC-20 · ERC-721

Tokens

Coins, points and unique items like NFTs are entries in a smart contract that anyone can check.

The course: 8 steps

All 8 steps are open. Start anywhere.

Step 1 of 8

Hash: a fingerprint of data

SHA-256 turns any text into 64 hex characters. Type below, then change just one letter and count how much of the hash changes.

Hash
…