Versions Compared

Key

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

...

Body Parameters

Type

Note

name

chaincode_labelstring(optional)The label that will be used to identify the installed chaincode package
package_id string(optional)The package id of the chaincode package that will be installed.
channel_idstring(optional)The channel on which this command should be executed.
versionstring (optional)the version of the chaincode definition to be approved
signature_policystring (optional)Use a policy inside the channel configuration as the chaincode endorsement policy.
peersstring array (optional)The array of the uuid of the peer nodes. For commit only
init_requiredbool flaga boolean flag to request the execution of the Init function to initialize the chaincode.


4. List chaincodes

Get GET api/v1/chaincodes

Get a list of uploaded chaincodes

Response Body  

Type

Note

namestringThe name of the chaincode.
chaincode_labelstringThe label that will be used to identify the installed chaincode package
versionstring the version of the chaincode definition to be approved
package_idstring the package id of installed package
languagestring the programming language of chaincode
descriptionstringa description of chaincode

5. Get a chaincode's information

Get GET api/v1/chaincodes/<chaincode_name>

Get a chaincodes the full information of the chaincode

Response Body 

Type

Note

namestringThe name of the chaincode.
chaincode_labelstringThe label that will be used to identify the installed chaincode package
versionstring the version of the chaincode definition to be approved
package_idstring the package id of installed package
packageapprove_idstatusstringthe approval status 
organizationsstring array A list of orgs that installed the chaincode.
channelchannelsstringSelected The committed channel names for the  the chaincode