/** * @param $userId * @return Wallet * @throws \HttpException */ public function getUserWallet($userId) { $labels = implode(',', $this->generateLabels($userId)); $result = $this->_blockio->get_address_balance(['labels' => $labels]); $wallet = Wallet::instantiate($result->data); return $wallet; }