/**
  * @param boolean $debug
  * @return MultichainClient
  */
 public function setDebug($debug)
 {
     $this->debug = $debug;
     if ($debug) {
         $httpClient = $this->jsonRPCClient->getHttpClient();
         $httpClient->withDebug();
     }
     return $this;
 }