You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

This demo explains the workflows discussed in Chaincode Frontend Design using screenshots.

Step 1: View chaincode list

  1. Once entering the chaincode page, you will see a table of all chaincode information. The table includes all chaincodes uploaded by the current org.
  2. You can check chaincode's name, version, language, sha256sum value, description and use corresponding operations.

Step 2: Upload new chaincode

    1. You can use the Upload Chaincode button to upload a new chaincode package by entering the information and uploading the chaincode package file in a pop-up window.

    2. sha256sum value will be calculated automatically by frontend after the chaincode file is uploaded and is uneditable.

    3. You will see the new chain code in the table if uploading succeeded.

Step 3: Install chaincode

  1. Each organizational user installs the chain code on their respective nodes.
  2. To install any available chaincode onto your nodes, click the "Install" button. A pop-up window will appear, allowing you to select the desired nodes within your organization for installation.
  3. By default, the nodes you have already installed will be automatically selected, and cannot be unchecked.

Step 4: Approve chaincode

  1. Each organization performs licensing operations on the chaincode.
  2. Click the Approve button to approve chaincode and check other organizations' approvement status.
  3. You can check the organizations that have already approved the current chaincode and perform licensing operations if desired.

   4. The corresponding approve button will disappear after you approved the chaincode.


Step 5: Commit chaincode

  1. You can commit the chaincode to channels by clicking Commit button
  2. You can check chaincode commit policies before committing by clicking the link in pop-up window
  3. You need to choose the desired channel for committing the chaincode from the available options in the drop-down menu. You can also review the list of channels where the chaincode has already been committed.

   4. If the current approvement does not meet the channel policies, commitment may fail and you will see a prompt window

More operations(optional):

  • Delete: Delete chaincode from database if it is not used.
  • Update: Go through all steps above using updated information.










  • No labels