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

Creating a chain

Once a node has been set up, it can either join an existing network by connecting to a chain, or it can create its own chain. multichain-util is used to create a new chain, as follows:

$ multichain-util create chain1  

This creates a new local blockchain. The node then has to start a process by using multichaind to connect to the chain created. Multiple chains can be initialized on a single machine by starting multiple multichaind daemon processes. A multichaind process is created as follows:

$ multichaind chain1 -daemon  

The preceding line instantiates a process and starts the server. The genesis block is then mined by the node for the created chain. This code will yield an address, which can then be used by other nodes ...

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