Foundations · 5 min read

What Is a Blockchain?

Start with a shared ledger and see how blocks, hashes, nodes, and consensus work together.

A ledger anyone can check

A blockchain stores batches of records in order. Each batch is called a block. The computers that hold or verify those records are called nodes. On public blockchains such as Bitcoin and Ethereum, anyone can check the ledger against published rules, and people who run nodes can verify new records independently.

Imagine three people tracking shared expenses. When they settle up, each person gets the same list and checks that the expenses match their agreement. If one person edits their notes, the others still have their own copies. A blockchain uses digital signatures and protocol rules to make these checks.

How blocks form a chain

A hash function turns data of any length into a fixed-length digest. A small change to the input usually changes the digest. Each block refers to the preceding block by its hash, linking the blocks in order.

If someone changes a record in an earlier block, that block’s hash changes and the reference in the next block no longer matches. For the network to accept a different history, that history must also satisfy the consensus rules. How hard it is to rewrite a record depends on the network’s design and how far the record has progressed toward finality.

What consensus does

Nodes can receive competing candidate blocks in different orders. A consensus mechanism specifies how blocks are proposed and verified and how nodes choose the history they build on. Bitcoin uses proof of work. Ethereum Mainnet uses proof of stake. Each system reaches agreement and confirms records differently.

Explore a block for yourself

Open a confirmed block in a block explorer for your network. Look for the block height, timestamp, transaction list, and reference to the previous block. Select a transaction to see which block included it. In a public blockchain, these records can usually be read by anyone, and activity at the same address can be traced over time.

On-chain records help you check what the network accepted. If a record describes something off-chain, such as a temperature reading from a warehouse, you still need to know who submitted it and whether the measurement was reliable.

Further reading