Get Chaincode Package from Peer

get

/console/admin/api/v2/chaincodes/{packageID}

Download the chaincode package from a peer in tar.gz format.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

The chaincode files packaged in tar.gz format
Body ()
Root Schema : schema
Type: file

400 Response

Invalid arguments
Body ()
Root Schema : 400errorModels
Type: object
Show Source
Example:
{
    "respMesg":"invalid argument"
}

401 Response

Unauthorized

404 Response

Resource not found

500 Response

Internal server error
Body ()
Root Schema : 500errorModels
Type: object
Show Source

Default Response

Unexpected error
Body ()
Root Schema : errorModel
Type: object
Show Source
Back to Top