Building the /register-nodes-bulk endpoint

The next endpoint that we are going to build is our register-nodes-bulk endpoint; this is the final endpoint that we need to build. These three endpoints that we have been working on will all work together to create our decentralized blockchain network.

Before we start building the endpoint, let's try to understand what the register-nodes-bulk endpoint does. Whenever a new node gets broadcast to all the other nodes inside of the network, we want to take all of the nodes that are already inside of the network and send that data back to our new node so that the new node can register and recognize all of the nodes that are already present inside of the network.

The register-nodes-bulk endpoint will ...

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.