Testing the /address/:address endpoint

In order to test the endpoint, we need to add some transaction data to the blockchain, let's follow these steps to do that: 

  1. Go to the browser and explore the blockchain that's present on localhost:3001. You'll observe that there's only one block present here. So, let's add more transaction data and blocks to it.
  1. To do this, go to Postman and send the transaction data to localhost:3001/transaction/broadcast. While creating these transactions, we want to make sure that we keep track of a specific address so that we can check for it when we test the /address/:address endpoint. In order to keep track of this specific address, let's change the first three letters of one of the addresses to JEN.
  2. Let's ...

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.