1. Install
POST api/v1/chaincodes/
The front end will allow uploading a chaincode package, which is a .tar.gz format file.
...
Body Parameters | Type | Note |
---|---|---|
Chaincode Version? | string | the version of the chaincode |
Peers | array | an array of peer nodes |
Chaincode File | string | Package |
Description | string |
2. Deploy a Chaincode → Approve (may by several orgs), Commit
POST api/v1/chaincodes/<chaincode_name>/channels
...
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. Upgrade
PUT api/v1/chaincodes/<chaincode_name>
...