To unlock bootloader

I wanted to unlock bootloader in my samsung galaxy m51 .but my phone’s volume buttons are broke and doesnt work anymore , when i googled about it i saw that if i want to unlock bootloader without using volume buttons you need to get unlock code from samsung official site
So please tell me how to get the code asap as its emergency…
Yours kindly

Welcome to this forum.

Welcome to this forum. This forum is for application development-related queries. As your query is a user query, you would get better assistance if you posted your query in the Samsung Community. Please follow the link: Samsung Community