Instantiate the chaincode

The Retailer should run the following command in its Cloud9 terminal to instantiate the chaincode. This step only needs to be performed by one channel member.

docker exec cli peer chaincode instantiate -o $ORDERER -C mainchannel -n supplychaincc -v v0.1 -c '{"Args":["init"]}' --cafile /opt/home/managedblockchain-tls-chain.pem --tls

The output should look like:

2020-07-23 04:00:59.498 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 001 Using default escc
2020-07-23 04:00:59.498 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 002 Using default vscc