March 2019
Intermediate to advanced
636 pages
27h 50m
English
The sequence of steps described previously can be run in one go through a suitably coded script. As mentioned earlier, createTradeApp.js contains such a script, which results in the creation of tradechannel, the joining of the four peers to that channel, the installation of the trade_workflow chaincode on all four peers, and its subsequent instantiation on the channel, which finally concludes with the creation of a trade request from the importer to the exporter and a follow-up querying the request status. You can run the following command and see the various steps being conducted on your console:
node createTradeApp.js
Just as an exercise, and to test out both the middleware library functions and the chaincode, you ...
Read now
Unlock full access