Versions Compared

Key

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

...

Body Parameters

Type

Note

chaincode_labelstringThe label that will be used to identify the installed chaincode package
package_id stringThe package id of the chaincode package that will be installed.
channel_idstringThe channel on which this command should be executed.
versionstring the version of the chaincode definition to be approved
signature_policystring Use a policy inside the channel configuration as the chaincode endorsement policy.
peersstring array The array of the id of the peer nodes. For commit only


3. List chaincodes

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

3.

...

Get a chaincode

Get api/v1/chaincodes/<chaincode_name>

...