In order to test the endpoint, we need to add some transaction data to the blockchain, let's follow these steps to do that:
- 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.
- 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.
- Let's ...