Reader small image

You're reading from  Learn Blockchain Programming with JavaScript

Product typeBook
Published inNov 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781789618822
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Eric Traub
Eric Traub
author image
Eric Traub

Eric Traub currently works as a software engineer in New York City. He has extensive experience working as a teacher and instructing people in a variety of different subjects. He changed his career from teaching to software engineering because of the excitement it brings to him and the passion that he has for it. He is now lucky enough to have the opportunity to combine both of these passions - software engineering and teaching!
Read more about Eric Traub

Right arrow

Testing all of the network endpoints

From what we have learned in the preceding section, we know that our register-node route and that the register-nodes-bulk route are both working correctly. So, in this section, let's put it all together and test our register-and-broadcast-node route, which uses the both the register-node route and the register-nodes-bulk route.

The register-and-broadcast-node endpoint will allow us to build a decentralized blockchain network by allowing us to create a network and add new nodes to it. Let's jump right into our first example to get a better understanding of it. To understand how the register-and-broadcast-node route works, we'll make use of Postman.

In the Postman application, we want to make a post request to register and broadcast the node on localhost:3001. However, before we do that, just make sure that all four nodes are...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn Blockchain Programming with JavaScript
Published in: Nov 2018Publisher: PacktISBN-13: 9781789618822

Author (1)

author image
Eric Traub

Eric Traub currently works as a software engineer in New York City. He has extensive experience working as a teacher and instructing people in a variety of different subjects. He changed his career from teaching to software engineering because of the excitement it brings to him and the passion that he has for it. He is now lucky enough to have the opportunity to combine both of these passions - software engineering and teaching!
Read more about Eric Traub