I can confidently say that if Israel stops supporting settlers taking Palestinian homes, killing Palestinians indiscriminately, and no longer enforce apartheid Hamas would observe an end to violent hostilities.
It isn’t like Hamas can offer more than not being the instigator of violence, and if your calender goes back further than October you will see that Hamas arose to power in response to Israeli violence.