I Have been trying to clone already existing coin and also was successful in creating it. But want to have a coin 100% pre-mined on my walllet address. So I did googled about it most say to insta mine the coin and many suggested to directly include Coinbase transaction in genesis block, but was unable do so.
Can any have idea about how to inject that coinbase transaction in genesis block or do anyone know how to create genesis block to have total supply pre-mined at my own wallet address?.
You simply can't: the coinbase tx of the genesis block is not spendable. You have to craft a blockreward function in a way that all your premine is created in the block #1. Then you have to find the solution for this block (the same way as you did for genesis block)