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

Compare with Current View Page History

« Previous Version 2 Next »

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 install

Body Parameters

Type

Note

Chaincode Version?stringthe version of the chaincode
Peersarrayan array of peer nodes
Chaincode FilestringPackage 
Descriptionstring 

2. Deploy a Chaincode → Approve (may by several orgs), Commit

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


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. Upgrade

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