Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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?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>

...