Class LifecycleQueryInstalledChaincodeRequest

java.lang.Object
org.hyperledger.fabric.sdk.LifecycleQueryInstalledChaincodeRequest

public class LifecycleQueryInstalledChaincodeRequest extends Object
Request to get a LifecycleQueryInstalledChaincodeProposalResponse for a specific packageId
  • Method Details

    • setPackageID

      public void setPackageID(String packageId) throws InvalidArgumentException
      The packageId of the chaincode to query. Sent to peer to get a LifecycleQueryInstalledChaincodeProposalResponse
      Parameters:
      packageId -
      Throws:
      InvalidArgumentException
    • setUserContext

      public void setUserContext(User userContext)
      Set the user context for this request. This context will override the user context set on HFClient.setUserContext(User)
      Parameters:
      userContext - The user context for this request used for signing.
    • setProposalWaitTime

      public void setProposalWaitTime(long proposalWaitTime)
      Sets the timeout for a single proposal request to endorser in milliseconds.
      Parameters:
      proposalWaitTime - the timeout for a single proposal request to endorser in milliseconds