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.

Install a chaincode: peer lifecycle installCreate a channel

Body Parameters

Type

Note

NamestringChannel stringname of the channel

Chaincode Version?stringthe version of the chaincode
Organizations 
Peers
array 
arrayan array of
organization idsLanguagestring?
peer nodes
Chaincode Filestring
?
Package 
Description 
Descriptionstring 

2.

...

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

POST api/v1/chaincodes/<chaincode_name>/channelsCreate 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.

...

 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