Skip to content
DonateБГ

Beginners

The blockchain

The blockchain is the public record of every confirmed bitcoin transaction, kept as a chain of linked blocks. Learn how it is stored, shared and grown.

By Dimitar Zurnov · Updated 4 Nov 2026
Adapted from Learn Me a Bitcoin by Greg Walker.

The blockchain is the record of every bitcoin transaction that has been confirmed. It is a list of blocks, and each block points back to the one before it. Every node keeps a copy of that list, and the copies agree with each other.

What is the blockchain?

The blockchain is a set of files stored on each node's disk. Together, the files hold every block in order, from the first one in January 2009 up to the newest. A new block arrives about every 10 minutes, so the list keeps growing.

Think of it as a ledger, a book where every entry is kept in order. Each entry is a transaction, and changing an old entry is very hard.

Why does the chain matter?

The blockchain is the one shared record of who spent which coins. It is not a list of accounts with balances. It lists each transaction, the coins it spent, and the new coins it created.

Your wallet adds up the coins that are still unspent and locked to your addresses. That total is your balance. The outputs page explains how coins pass from one entry to the next.

Why is it called a chain?

Transactions are not added one at a time. They are grouped into blocks, and each block stores the hash of the block before it. That stored link turns a plain list of blocks into a chain.

Each block stores the hash of the block before it, so editing one block breaks the link to the next. Block 99,999 …19011250 …a7c3e0f2 Block 100,000 previous hash …19011250 no match
Block 100,000 stores the hash of block 99,999. Edit block 99,999, and the stored hash no longer matches.

If you change one block, its hash changes. The next block no longer matches it, and anyone can check for that mismatch. To hide a change, someone would have to redo the work for that block and every block after it. They would also have to do it faster than the rest of the network adds new blocks. That is why the chain is so hard to alter.

Grouping transactions into blocks also makes the record easier to pass around. Updates that arrive once every 10 minutes are simpler to share than constant small changes.

How do nodes share the blockchain?

Nodes share the chain with each other. When a miner finds a new block, it tells its peers. They check the block and pass it along to their own peers. A node that has fallen behind asks its peers for the blocks it is missing, and so it catches up. It works a bit like a BitTorrent file, where each copy passes along the parts the others lack.

A new block is added to the end of the chain, and every node adds the same block. The chain grows at the endBlock100,002newestBlock100,001Block100,000Block99,999about every 10 minutes
The newest block joins the end of the chain. Every node adds the same block.

How big is the blockchain?

The full chain takes up hundreds of gigabytes, and it grows every day as new blocks arrive. A new node must download all of it once, and that first download takes a long time. After that, the node only adds the new blocks as they arrive.

Disk space can be a constraint. Bitcoin Core offers pruning, which keeps the chain small. A pruned node still checks every block as it downloads it. Then it deletes the oldest block files and keeps only the newest ones. You set the size limit with the prune option, in MiB, and the minimum is 550. The node keeps checking each new block it receives.

Where is the blockchain on my computer?

Bitcoin Core keeps the blocks in a folder called blocks, inside its data folder. The location depends on your system:

  • Linux: ~/.bitcoin/blocks/
  • macOS: ~/Library/Application Support/Bitcoin/blocks/
  • Windows: C:\Users\<you>\AppData\Local\Bitcoin\blocks\ in version 28.0 and later. Older versions used AppData\Roaming.

The files are named blk00000.dat, blk00001.dat, and so on. They store data in a form that computers read. Opening one in a text editor shows only unreadable bytes. To read the chain properly, use a block explorer. Our explorer shows each block on its own page, such as block 0.

Next, read blocks. It explains what a block contains, and how its 80-byte header is built from fixed fields.

In this section: Beginners

All of Bitcoin from zero

Something look wrong? Tell us