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

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.

主站蜘蛛池模板: 香格里拉县| 岑巩县| 珲春市| 盘锦市| 杭锦后旗| 吴堡县| 温州市| 郎溪县| 濮阳市| 章丘市| 中宁县| 连山| 东台市| 芜湖县| 高邑县| 临沧市| 化德县| 宜兴市| 青河县| 桂平市| 黄浦区| 锡林浩特市| 海原县| 甘南县| 唐河县| 清涧县| 德州市| 平昌县| 玛沁县| 曲周县| 安阳市| 福海县| 通渭县| 昔阳县| 东阳市| 苏州市| 锦州市| 朝阳区| 岫岩| 昭觉县| 池州市|