If anybody blackmails or threatens to out your identity or sexual orientation and asks for money or anything of value to maintain their silence, they are committing a crime of extortion. Even the threat of injuring you in this process would amount to the crime of extortion. For example, if someone asks you for money in exchange for keeping your decision to change your gender identity a secret, then this is a crime of extortion for which you should complain to the police.
In such scenarios, you can get immediate help by calling helplines. You can complain with the police regardless of your sexual orientation or gender identity. You can file anand then later filing an FIR with the police with the help of Section 383 of the Indian Penal Code, 1860.0