public async Task <string> CreateAddressAsync() { LykkePayWallet wallet = await _bitcoinServiceClient.GenerateLykkePayWallet(); if (wallet.HasError) { await _log.WriteWarningAsync(nameof(CreateAddressAsync), "New bitcoin address generation", wallet.Error?.Message); throw new WalletAddressAllocationException(BlockchainType.Bitcoin); } return(wallet.Address); }
public async Task <string> CreateAddressAsync() { LykkePayWallet wallet = await _bitcoinServiceClient.GenerateLykkePayWallet(); if (wallet.HasError) { _log.Warning("New bitcoin address generation", context: wallet.ToJson()); throw new WalletAddressAllocationException(BlockchainType.Bitcoin); } return(wallet.Address); }