public override async Task <EthereumSettingsResponse> GetEthereumSettings(Empty request, ServerCallContext context) { var result = new EthereumSettingsResponse(); var token = context.GetBearerToken(); var response = await _walletApiV1Client.GetEthereumPrivateWalletSettingsAsync(token); if (response.Result != null) { result.Body = _mapper.Map <EthereumSettingsResponse.Types.Body>(response.Result); } if (response.Error != null) { result.Error = response.Error.ToApiError(); } return(result); }
public override Task <EthereumSettingsResponse> GetEthereumSettings(Empty request, ServerCallContext context) { var resp = new EthereumSettingsResponse(); resp.Result = new EthereumSettingsResponse.Types.EthereumSettings() { Bitcoin = new EthereumSettingsResponse.Types.BitcoinFee() { MaxFee = "0.001", MinFee = "0.00001" }, EthAssetId = "ETH", MaxGas = "21000", MaxGasPrice = "600000000", MinGas = "0", MinGasPrice = "20000000", StepGas = "5000000", StepsCount = 100 }; return(Task.FromResult(resp)); }