1. Install
POST api/v1/chaincodes/
Create a channel
Body Parameters | Type | Note |
---|---|---|
Name | string | |
Channel | string | name of the channel |
Chaincode Version | string | the version of the chaincode |
Organizations | array | an array of organization ids |
Language | string | ? |
Chaincode File | string | ? |
Description | string |
2. Instantiate a Chaincode
POST api/v1/chaincodes/<chaincode_name>/channels
Create a channel
Body Parameters | Type | Note |
---|---|---|
Name | string | |
Channel | string | name of the channel |
Chaincode Version | string | the version of chaincode |
Initialization Function | string | Chaincode function that will be invoked |
Organizations | array | an array of endorsing organization ids |
3. Update
PUT api/v1/chaincodes/<chaincode_name>
Update a channel
Body Parameters | Type | Note |
---|---|---|
Name | string | |
Channel | string | name of the channel |
Chaincode Version | string | the version of chain code |
Organizations | array | an array of organization ids |
Language | string | ? |
Chaincode File | string | ? |
Description | string |