Installation
After the chaincode package is obtained, it can be installed on the organization’s peers. Every peer that will execute and endorse transactions must have the chaincode installed.
The installation is performed on behalf of a peer administrator. The command itself requires a single argument pointing to the chaincode package.
peer lifecycle chaincode install chaincode.tar.gz
The chaincode is built by a peer during the installation process. Therefore, the install command returns any build errors if there is a problem with the smart contract code.
A successful install command returns a chaincode package identifier, which is a package label combined with a hash of the package. This package identifier is used to associate a chaincode package installed on a peer with a chaincode definition approved by an organization. The identifier can be obtained afterwards by querying the packages installed on a peer.
Last updated
Was this helpful?