Skip to Content
Foundations of Blockchain
book

Foundations of Blockchain

by Koshik Raj
January 2019
Beginner to intermediate
372 pages
11h 17m
English
Packt Publishing
Content preview from Foundations of Blockchain

Block structure

The data structure of a Bitcoin block holds a collection of transactions and metadata information about the block. A block is made up of a header and body, which consists of all the transactions. A block holds more than 500 transactions, on average.

Table 5.2 shows all the fields that are included in a block. The dominant part of the block is the header and transactions, which would occupy variable size. Each field shows the size or the transactions occupied in the block:

Field

Description

Size

Magic no

The value is always 0xD9B4BEF9

4 bytes

Block Size

Number of bytes up to the end of the block

4 bytes

Block Header

Consists of six items

80 bytes

Transaction Counter

Integer count

1 - ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Blockchain Basics

Blockchain Basics

Daniel Drescher
What Is Blockchain?

What Is Blockchain?

Sir John Hargrave, Evan Karnoupakis
Mastering Blockchain

Mastering Blockchain

Lorne Lantz, Daniel Cawrey

Publisher Resources

ISBN: 9781789139396Supplemental Content