Block #1

Data Hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Difficulty: 2
Nonce: 0
Previous Hash: 008157b0b86e8d32af14afad31de4c245ed6a1dab49995bddef8204b1a0baa78
Timestamp: 1741669459
Data:
Hash: e19f8f4732a8189902557b91a5afcccc74274197284a914eb909a6b3ad13bf01
Created at: 11/3/2025 5:4:19
Usage

A Blockchain is a write-only database that guarantees its integrity with cryptographic hash functions. Each block is identified by a hash made from the data it contains, the previous block's hash and other parameters like a timestamp, difficulty and nonce.

The difficulty (or target) represents how many zeros a block's hash needs to start with so it can be added to the blockchain. To mine a block we increment the value of the nonce until we generate a hash that satisfies the difficulty requirements of the blockchain.

Flipping a single bit of any block in the chain causes an avalanche effect on the hashes of all following blocks. This makes it very easy for any node in a decentralized peer-to-peer network to verify the integrity of the blocks.

In this example we use the same Block Header structure that Bitcoin uses. You can manually mine the block by increasing the nonce and checking if it satisfies the difficulty, or you can mine it automatically and add it to the chain. Any difficulty over 4 will lag and slow down your web browser. For some perspective, the current difficulty of Bitcoin is about 20, and people usually mine it with specialized hardware.

Mined Blocks

Block #0

Data Hash: 79644a8f062f1ba9f7a32af2242c04711a634d42f0628ada6b985b3d21296eea
Difficulty: 2
Nonce: 143
Previous Hash:
Timestamp: 1741669458
Data: GENESIS BLOCK
Hash: 008157b0b86e8d32af14afad31de4c245ed6a1dab49995bddef8204b1a0baa78
Created at: 11/3/2025 5:4:18
⌨️ Source Code 🖥️