Now we can test whether or not this endpoint works by using it in our browser:
- Let's go to our browser and hit localhost:3000/blockchain:
- As you can see, we get our entire blockchain back. Now, you might have noticed that this is a little bit difficult to read, so to make it readable, let's download a Chrome extension called JSON formatter. You can Google this and add the extension to your Chrome browser. Once installed, refresh the page again and you will get the following output:
As you can see, we get ...