code: func (l *Lifecycle) QueryInstalledChaincode(name, version string) ([]byte, error) {
  	hash, err := l.ChaincodeStore.RetrieveHash(name, version)
  	if err != nil {
  		return nil, errors.WithMessage(err, fmt.Sprintf("could not retrieve hash for chaincode '%s:%s'", name, version))
  	}
  
  	return hash, nil
  }
docs: // QueryInstalledChaincode returns the hash of an installed chaincode of a given name and version.