code: public List<ChaincodeInfo> queryInstantiatedChaincodes(Peer peer) throws InvalidArgumentException, ProposalException {
          return queryInstantiatedChaincodes(peer, client.getUserContext());
  
      }
docs: Query peer for chaincode that has been instantiated
  
  <STRONG>This method may not be thread safe if client context is changed!</STRONG>
  
  @param peer The peer to query.
  @return A list of ChaincodeInfo @see {@link ChaincodeInfo}
  @throws InvalidArgumentException
  @throws ProposalException