如何在Bluemix

时间:2016-09-05 05:30:47

标签: deployment ibm-cloud blockchain

目前,我已经按照示例编写了链代码。如果我想将我的链代码部署到Bluemix,我可以采取哪些详细步骤?

1 个答案:

答案 0 :(得分:1)

你可以按照这个例子 https://console.ng.bluemix.net/docs/services/blockchain/ibmblockchain_tutorials.html

  • 推送到github上的公共仓库或任何git repo服务。
  • 您的注册后发布/注册商
  • 使用json body发布/ chaincode
{
      "jsonrpc": "2.0",
      "method": "deploy",
      "params": {
        "type": 1,
        "chaincodeID": {
          "path": "https://github.com//learn-chaincode/finished"
        },
        "ctorMsg": {
          "function": "init",
          "args": [
            "hi there"
          ]
        },
        "secureContext": ""
      },
      "id": 1
}