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

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.

主站蜘蛛池模板: 扎兰屯市| 侯马市| 辰溪县| 朝阳市| 麻城市| 江津市| 道孚县| 当雄县| 望江县| 子长县| 原平市| 太湖县| 太湖县| 新泰市| 永和县| 武鸣县| 巫溪县| 光山县| 乌拉特前旗| 伊吾县| 腾冲县| 巍山| 黄浦区| 靖安县| 黔西县| 清水河县| 铜鼓县| 汾阳市| 大化| 安塞县| 和平县| 浙江省| 安吉县| 贵南县| 宜都市| 寿宁县| 依安县| 伊通| 镇远县| 浮山县| 博兴县|