/** * @param string $walletId * @return WalletDto|null */ public function getWallet($walletId) { $wallet = $this->walletService->getWallet(new WalletId($walletId)); $blockCypherAddress = null; $blockCypherAddress = $this->blockCypherAddressService->getAddress($wallet->getId()->getValue(), $wallet->getCoinSymbol(), $wallet->getToken()); if ($blockCypherAddress === null) { return null; } return WalletDto::from($wallet, $blockCypherAddress); }