官术网_书友最值得收藏!

  • Hyperledger Cookbook
  • Xun (Brian) Wu Chuanfeng Zhang Andrew Zhang
  • 93字
  • 2021-06-24 14:59:41

Instantiating the assermgr chaincode

Next, we will instantiate the assermgr chaincode. As we discussed earlier, in order to create an asset record, we need to pass assetId, assetType, and deviceId. Let's assume that the school needs to trace an ipad with the 0e83ff device ID and the 100 asset ID. We can instantiate our ipad asset by running the following command:

peer chaincode instantiate -n mycc -v 0 -c '{"Args":["100","ipad", "0e83ff"]}' -C myc

The result is as follows:

We have now successfully installed and instantiated our assetmgr chaincode.

主站蜘蛛池模板: 信丰县| 南宁市| 兴宁市| 深州市| 安仁县| 云安县| 台州市| 准格尔旗| 彰武县| 玛纳斯县| 湘潭市| 吉水县| 通河县| 油尖旺区| 仙桃市| 敦化市| 呈贡县| 寿宁县| 山阳县| 金寨县| 名山县| 鄂温| 周宁县| 苍溪县| 平安县| 交口县| 剑河县| 洪洞县| 泰宁县| 诏安县| 大新县| 伊宁市| 塘沽区| 化德县| 长治市| 台安县| 诏安县| 铅山县| 兴宁市| 鹤峰县| 内乡县|