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

The Init function

The Init function is called when the chaincode is instantiated by the blockchain network and the function initializes the asset management data. In this function, we need to set up the OrgAsset initialization information. The three parameters we pass to call the Init function are assetId, assetType, and deviceId. This will set our device asset information, then we call the PutState(key, value) method to store the key and the value on the ledger.

主站蜘蛛池模板: 望江县| 滦平县| 永胜县| 台州市| 铁岭市| 娱乐| 会东县| 莒南县| 永靖县| 新兴县| 新平| 保定市| 宁明县| 金秀| 定襄县| 长治市| 珲春市| 河北区| 景洪市| 同德县| 双桥区| 子洲县| 平原县| 永康市| 盈江县| 太仆寺旗| 寻乌县| 游戏| 齐河县| 叶城县| 宁武县| 浏阳市| 青铜峡市| 灵石县| 济南市| 竹山县| 县级市| 长顺县| 溧阳市| 阳原县| 都匀市|