LoginSignup
0
1

More than 5 years have passed since last update.

Chaincodeのデプロイ方法(Githubの場合、ローカルの場合)

Last updated at Posted at 2016-07-30

なぜか分からないけど、githubの場合には全部小文字、ローカルの場合には小文字大文字区別するみたい。

githubから取得する場合

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
  \"jsonrpc\": \"2.0\",
  \"method\": \"deploy\",
  \"params\": {
    \"type\": 1,
    \"chaincodeID\": {
      \"path\": \"https://github.com/kkoiwai/consentform\"
    },
    \"ctorMsg\": {
      \"function\": \"init\",
      \"args\": [
      ]
    }
  },
  \"id\": 0
}" "127.0.0.1:5000/chaincode"

ローカルで取得する場合( $GOPATH/src/下のディレクトリ )

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
  \"jsonrpc\": \"2.0\",
  \"method\": \"deploy\",
  \"params\": {
    \"type\": 1,
    \"chaincodeID\": {
      \"path\": \"github.com/kkoiwai/ConsentForm\"
    },
    \"ctorMsg\": {
      \"function\": \"init\",
      \"args\": [
      ]
    }
  },
  \"id\": 0
}" "127.0.0.1:5000/chaincode"

0
1
4

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1