- If you are trying to deploy chain code on Luniverse Console, select chain tab and go to [Console > Chain > Overview] page. For Open Beta, select Hyperledger Beta tab and click on mychannel.
You can only deploy up to three chaincodes in the Open Beta.
Go to Chain Code List page by clicking [Chain Code List] menu.
On Chain Code List page, you will get to check the list of chain code already deployed or is being deployed.
Click on [Create Chain Code] button.
Enter information of chaincode you wish to deploy on Create Chain Code page. It has to be between 2-50 characters and you can use English/numbers and under bar(_) and dash(-) or special characters. However, you cannot enter special character in the first and last spot.
**Ex)** _1contract (X) 1contract- (X) 1-contract (O)
Enter description of chaincode.
Enter version information of chaincode. You can enter English/number, underbar(_), period(.), and dash(-). However, you cannot put special characters in the first spot.
Enter Argument information that will be put into chaincode’s init fuction in JSON ARRAY format.
Zip and uplodad the entire directory containing the chaincode source. Luniverse supports all three languages: Go, Java, and Node.js, the official languages supported by Hyperledger Fabric.
Click the [Create] button to create a chaincode.
- You can check the chaincode deployed on the Chain Code List. It takes less than one minute to deploy the chaincode, and its status changes from [Deploying] to [Deployed].
You might face an error while deploying the chaincode and the status will be shown as [Failed] with a message indicating the cause of failure. However, "init parameter error" doesn't necessarily mean total failure. Its status would be [Deployed], which shows that the process of instantiating the chaincode is valid, but of initiating the chaincode is failed. Therefore, you must send an initialization transaction at least once during your DApp development.
Updated 13 days ago