Adding new transactions and blocks to the blockchain 

Similar to what we did in the previous section, first, let's add some transactions and blocks to the blockchain:

  1. Therefore, head over to Postman and hit the localhost:3001/transaction/broadcast endpoint to send the transaction to all the nodes in the network.  
  2. Now, send a couple of example transactions to the network. You can create the transactions as seen in the following screenshot: 

  1. After adding the transaction data, click on the Send button to send the transaction to the network. Similarly, you can add one more transaction of "amount": 200 and send that to the network.   
  2. Next, ...

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.