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

  • 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.

主站蜘蛛池模板: 北安市| 张家川| 安多县| 鹿邑县| 济宁市| 广南县| 西昌市| 洛隆县| 启东市| 芦溪县| 简阳市| 宜良县| 南靖县| 皮山县| 延庆县| 奉新县| 应城市| 澎湖县| 绩溪县| 邮箱| 汕尾市| 客服| 汉川市| 长海县| 日土县| 定西市| 安多县| 阿尔山市| 馆陶县| 永兴县| 儋州市| 焉耆| 巫溪县| 嫩江县| 贺兰县| 吴桥县| 昭平县| 宁陵县| 城市| 定州市| 旬邑县|