Recapping how to create the network 

Take a look at the following steps to understand how to connect all the nodes: 

  1. Go to Postman and hit the /register-and-broadcast-node route. This can be done on any of your nodes. In our example, let's use localhost:3001.
  2. Now, inside the body, we want to add a new node to our network by passing its URL. Let's start with our second node. Take a look at the following screenshot:

  1. Then, click on the Send button to send the request. After sending the request, you'll receive a response that says New node registered with the network successfully. You can send all the remaining nodes in the same way.
  2. To verify ...

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.