Understanding how all of the endpoints work together 

Learning about all of these endpoints might seem little bit confusing at this stage, so let's try to understand this with the help of a diagram. In the following diagram, we have our blockchain network: 

Now let's assume that these five network nodes are already connected to each other, thus forming our decentralized network. Also, let's assume that we want to add a node that is hosted on localhost:3009 to our network.

The first thing that we'll do to add that node to our network is hit the register-and-broadcast-node endpoint on one of our network nodes: 

When we hit the register-and-broadcast-node ...

Get Learn Blockchain Programming with JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.