March 2019
Intermediate to advanced
636 pages
27h 50m
English
We now need to install the chaincode on the channel before we initiate it, which will invoke the method Init:
$ docker exec -it cli bash $ peer chaincode install -p chaincodedev/chaincode/trade_workflow_v1 -n tw -v 0
$ peer chaincode instantiate -n tw -v 0 -c '{"Args":["init","LumberInc","LumberBank","100000","WoodenToys","ToyBank","200000","UniversalFreight","ForestryDepartment"]}' -C tradechannel
The CLI-connected terminal now contains a list of log messages of the interaction with the chaincode. The chaincode terminal shows ...
Read now
Unlock full access