How can i transfer the license?

Please advise

The license is bound to the host id. Therefore, you can just run the init command using the same host id on a new ESXi host, and then activate the license with the same license code.