Deploy Chaincode Guide

Before integrating your chaincode with a Business Group on the GoFabric platform, make sure you have built the chaincode. If you haven't done so yet, refer to the Chaincode Builder Guide. This will ensure that the chaincode is ready for successful integration.

Empty chaincode page

Deploy Chaincode

After successfully creating the chaincode in the Chaincode Builder, follow these steps:

  1. Navigate to the desired Business Group.
  2. Click on "Chaincodes" and then on the "+ Add Chaincode" button.

On the "Add Chaincode" page, select the desired chaincode and the peer on which you want to install it. Empty chaincode page After selecting the desired option, click on "Add Chaincode".

After this step, an installation proposal for the chaincode will be generated, which the other organizations in the Business Group must approve.

Accepting the Proposal

To accept the chaincode proposal, the other organizations should follow these steps:

  1. Go to the Organization to which the proposal was sent.
  2. Click on the desired Business Group.
  3. View the proposal in the Business Group overview.
  4. Click on "Accept Proposal".

Empty chaincode page

When viewing the proposal in the "Accept Proposal" modal, make sure you are certain about accepting it, as this action cannot be undone. Click the "Confirm" button to confirm your decision to accept the proposal.

Peer Selection

The organizations are prompted to select a peer of their own to install the chaincode. Follow these steps to complete the approval:

  1. Select the peer from your organization that will accept the proposed chaincode.
  2. After selecting the peer, click on "Accept" to confirm your decision.

Approval and Peer Selection

Make sure to carefully review all the information before confirming the acceptance of the proposal. Once you click "Accept" and confirm the decision, the chaincode will be successfully installed on the selected peer.

Note: Proposals are finished when all organizations in the Business Group have accepted them.

Next Steps

  1. Check the Create Chaincode APIs and GoInitus Guide for the final steps.