Take a look at the following steps to understand how to connect all the nodes:
- 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.
- 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:
- 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.
- To verify ...