...
Body Parameters | Type | Note |
---|---|---|
name | ||
channel_id | string(optional) | The channel on which this command should be executed. |
version | string (optional) | the version of the chaincode definition to be approved |
signature_policy | string (optional) | Use a policy inside the channel configuration as the chaincode endorsement policy. |
peers | string array (optional) | The array of the uuid of the peer nodes. For commit only |
init_required | bool flag | a 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 |
---|---|---|
name | string | The name of the chaincode. |
chaincode_label | string | The label that will be used to identify the installed chaincode package |
version | string | the version of the chaincode definition to be approved |
package_id | string | the package id of installed package |
language | string | the programming language of chaincode |
description | string | a 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 |
---|---|---|
name | string | The name of the chaincode. |
chaincode_label | string | The label that will be used to identify the installed chaincode package |
version | string | the version of the chaincode definition to be approved |
package_id | string | the package id of installed package |
packageapprove_idstatus | string | the approval status |
organizations | string array | A list of orgs that installed the chaincode. |
channelchannels | string | Selected The committed channel names for the the chaincode |