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

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

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.

主站蜘蛛池模板: 马山县| 甘泉县| 太康县| 富裕县| 东丰县| 德令哈市| 龙口市| 梁山县| 无为县| 大渡口区| 曲靖市| 天峨县| 百色市| 清远市| 怀来县| 丰城市| 比如县| 颍上县| 麻城市| 嘉义市| 静海县| 郎溪县| 重庆市| 黔西| 东辽县| 大连市| 桐城市| 田阳县| 谢通门县| 黑龙江省| 崇仁县| 莱芜市| 庆安县| 澄城县| 康平县| 吉首市| 涡阳县| 绥阳县| 利津县| 祥云县| 吉水县|