public function createWalletUser($username, $password, $email, $token) { $walletClient = new Client(null, null, $this->walletApiUrl); $keys = $this->getUserKeys($username, $password, array('wallet', 'api', 'key')); $account = array('token' => $token, 'username' => $username, 'email' => $email, 'country' => '', 'timezone' => '', 'keys' => array('wallet' => $keys['wallet']['private'], 'api' => Crypto::signData($keys['api']['private']), 'key' => Crypto::signData($keys['key']['private']))); $result = $walletClient->query('user/create', 'POST', $account, false); return $result; }