You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

1. Install

POST api/v1/chaincodes/

Create a channel

Body Parameters

Type

Note

Namestring
Channel stringname of the channel
Chaincode Versionstringthe version of the chaincode
Organizations array an array of organization ids
Languagestring?
Chaincode Filestring?
Description string 



2. Instantiate a Chaincode

POST api/v1/chaincodes/<chaincode_name>/channels

Create a channel

Body Parameters

Type

Note

Namestring
Channel stringname of the channel
Chaincode Versionstringthe version of chaincode
Initialization Functionstring 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

Namestring
Channel stringname of the channel
Chaincode Versionstringthe version of chain code
Organizations array an array of organization ids
Languagestring?
Chaincode Filestring?
Description string 
  • No labels