/**
  * Create a request.
  */
 private function createRequest($method)
 {
     $curl = new CurlRequest();
     $curl->setUrl("https://block.io/api/v2/" . $method);
     $curl->setParam("api_key", get_option("blockchainaccounts_block_io_api_key"));
     $curl->setResultProcessing("json");
     return $curl;
 }
 /**
  * Create request for method.
  */
 private function createRequest($method)
 {
     $req = new CurlRequest($this->getWalletUrl() . $method);
     $req->setResultProcessing(CurlRequest::JSON);
     $req->setParam("password", $this->password);
     if ($this->secondPassword) {
         $req->setParam("second_password", $this->secondPassword);
     }
     return $req;
 }