简体   繁体   English

如何在 Hyperledger composer 中为我的用例编写智能合约?

[英]How can write a smart contract for my use case in Hyperledger composer?

i want to write a smart contract (logic.js)for my use case using hyperledger composer playground tool, i know it is writen in javascript so i studied it(javascript), also i read examples for smart contracts for other networks but it is not enough to me to write my own one, also i read this link( https://hyperledger.github.io/composer/v0.19/reference/js_scripts.html ).我想使用 hyperledger composer playground 工具为我的用例编写一个智能合约(logic.js),我知道它是用 javascript 编写的,所以我研究了它(javascript),我还阅读了其他网络的智能合约示例,但它是不足以让我自己写一个,我也读了这个链接( https://hyperledger.github.io/composer/v0.19/reference/js_scripts.html )。 but it still not enough, so my question is how can write my own (logig.js )file?但这还不够,所以我的问题是如何编写自己的(logig.js)文件?

Firstly you need to learn the JavaScript.首先你需要学习JavaScript。 Then doing something practical like https://github.com/IBM-Blockchain/marbles .This is an open source project.然后做一些实际的事情,比如https://github.com/IBM-Blockchain/marbles 。这是一个开源项目。 Hope it helpfull.希望有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hyperledger Fabric智能合约中的读写操作 - Read and write operation in hyperledger fabric smart contract 带有私有数据的 Hyperledger Fabric 智能合约在 vscode 中有效,但在外部应用程序中无效。 如何将数据写入多个隐式集合? - Hyperledger Fabric Smart Contract with private data works in vscode but not in external app. How can I write data to multiple implicit collections? 你能在 Hyperledger Fabric 中终止智能合约吗? - Can you kill a smart contract in Hyperledger Fabric 如何将Hyperledger智能合约连接到python脚本 - How to connect Hyperledger smart contract to python script Hyperledger“智能合约”可以在状态下有多个集合吗? - Can Hyperledger "Smart Contract" have multiple collections at the state? 如何在Hyperledger作曲家中管理资产? - How can I manage my assets in hyperledger composer? 我可以在Hyperledger作曲家中编写复杂的查询吗 - can i write complex queries in hyperledger composer 如何在Hyperledger Fabric中描述智能合约的一般输入? - How to describe a generic input to a smart contract in Hyperledger Fabric? 如何将 Hyperledger Fabric 智能合约链接到前端? - How to link Hyperledger Fabric smart contract to a front end? 在 Hyperledger Fabric 智能合约中,我如何打开日志记录? - In a Hyperledger Fabric Smart Contract how do I turn on logging?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM