0Pricing
Web3 & DApp Development Fundamentals · レッスン

ブロックとチェーン

ブロックがつながる仕組み

「ブロックとチェーン」はCoddyKit上の無料Web3 & DApp Development Fundamentalsレッスンです。 これはレッスン1/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはWeb3 & DApp Development Fundamentals学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

What Is a Block?

A block is the fundamental container in a blockchain. It bundles together a set of validated transactions along with metadata that ties it to the rest of the chain.

Each block has two main parts:

  • Header — metadata (timestamp, hashes, nonce)
  • Body — the list of transactions

Anatomy of a Block Header

The header is small but powerful. A typical Ethereum-style header includes:

  • previousHash — hash of the prior block
  • timestamp — when the block was created
  • merkleRoot — fingerprint of all transactions
  • nonce — value used in consensus

The header is what gets hashed to identify the block.

block Header {
    previousHash: 0x9f1c...a3
    timestamp:    1717000000
    merkleRoot:   0x4be2...07
    nonce:        42891
}

How Blocks Link Together

Every block stores the hash of the previous block. This single field is what turns a pile of blocks into a chain.

Because each block points backward, the blocks form an ordered, append-only sequence reaching all the way back to the very first block.

Block 0 (Genesis)
   |  hash = 0xAAA
   v
Block 1  prevHash = 0xAAA  hash = 0xBBB
   |
   v
Block 2  prevHash = 0xBBB  hash = 0xCCC

The Genesis Block

The genesis block is the first block in any blockchain. It is special because it has no parent — its previousHash is typically all zeros.

Every other block can be traced back to genesis, which acts as the shared root of trust for the entire network.

Genesis = {
    previousHash: 0x0000000000000000
    timestamp:    1438269973
    transactions: []
}

Why the Backward Link Matters

The backward link makes tampering obvious. If someone alters a transaction in an old block, that block's hash changes.

But the next block stored the old hash in its previousHash field, so the link breaks. The mismatch is instantly detectable.

Chains Are Append-Only

Blockchains are append-only data structures. You can add new blocks to the tip, but you cannot insert or delete blocks in the middle without breaking every link that follows.

This property is the foundation of blockchain immutability.

Block Height

Block height is the number of blocks between a given block and the genesis block. Genesis is height 0, the next block is height 1, and so on.

Height gives every block a clear position and lets the network agree on which chain is longest.

height 0 -> Genesis
height 1 -> Block 1
height 2 -> Block 2
...
height N -> latest block

Transactions Inside a Block

The block body holds an ordered list of transactions. Order matters: it determines the final state after the block is applied.

Once a block is finalized, the transactions it contains — and their order — are fixed forever.

Block 12 body:
  tx[0]: Alice -> Bob   (5 ETH)
  tx[1]: Bob   -> Carol (2 ETH)
  tx[2]: Carol -> Dave  (1 ETH)

Block Size and Limits

Blocks cannot grow without limit. Each chain sets a cap — Bitcoin uses a byte limit, while Ethereum caps the total gas a block may consume.

These limits keep blocks small enough to propagate quickly across the network.

Identifying a Block by Its Hash

A block's identity is its hash — the output of running its header through a cryptographic hash function.

Change any field in the header and the hash changes completely. That is why hashes act as tamper-evident fingerprints for blocks.

blockHash = sha256(
    previousHash + timestamp +
    merkleRoot + nonce
)

Putting It Together

A blockchain is simply a linked list of blocks where each link is a cryptographic hash of the prior block.

This combination of ordering, hashing, and append-only writes is what makes the chain trustworthy without any central authority.

Quick Check

Test your understanding of how blocks connect.

Recap: Blocks and Chains

You learned that:

  • A block has a header (metadata) and a body (transactions)
  • Blocks link by storing the previousHash
  • The genesis block is the root with no parent
  • Chains are append-only, making them immutable
  • A block's identity is its hash

Next, we explore how Merkle Trees summarize all transactions efficiently.

よくある質問

「ブロックとチェーン」レッスンは無料ですか?

はい。「ブロックとチェーン」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、Web3 & DApp Development Fundamentalsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 Web3 & DApp Development Fundamentalsコースには全4レッスンが含まれています。

「ブロックとチェーン」で何を学びますか?

ブロックがつながる仕組み ブラウザで直接実行するハンズオンコードでWeb3 & DApp Development Fundamentalsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

Web3 & DApp Development Fundamentalsを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのWeb3 & DApp Development Fundamentalsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン1/4です。

「ブロックとチェーン」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このWeb3 & DApp Development Fundamentalsレッスンでコードを書いて実行できますか?

はい。すべてのWeb3 & DApp Development Fundamentalsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. ブロックとチェーン
  2. Merkle Tree
  3. ブロックチェーンにおけるハッシュ化
  4. 分散型台帳
← Web3 & DApp Development Fundamentalsに戻る