1. Install
POST api/v1/chaincodes/
The front end will allow uploading a chaincode package, which is a .tar.gz format file.
Install a chaincode: peer lifecycle installCreate a channel
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>/channelsCreate 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.
...
Upgrade
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 |