public async Task <ExecuteOperationsBatchResponse> ExecuteOperationsBatchAsync([FromBody] ExecuteOperationsBatchRequest request) { var response = new ExecuteOperationsBatchResponse(); if (_operationService.AreOperationTypesSupported(request.Operations.Select(o => o.Type))) { try { response.TxHashesDict = await _operationService.ExecuteOperationsBatchAsync ( request.MasterWalletAddress, request.Operations.Select(i => new OperationDetails { Id = i.OperationId, Type = i.Type, Nonce = i.Nonce, JsonPayload = i.PayloadJson }) ); } catch (WalletNotFoundException) { response.Error = ExecuteOperationError.MasterWalletNotFound; } } else { response.Error = ExecuteOperationError.NotSupportedOperationType; } return(response); }