How to add coinbase transaction with libblkmaker I currently trying to develop a simple Bitcoin miner in c++ for a project on my university. For parsing the 'getblocktemplate'-data I'm using libblkmaker.
Now I have to build the coinbase transaction for the 'blktmpl', but I don't really know how. 

Anyone knows how to add a coinbase transaction to the block-template with 'libblkmaker'?

And how do I add my bitcoin address to this?

Thanks for your help,
Sebastian
To set a generating address, use set_generate_addr. blkmk_init_generation3 may also be what you're looking for.

The author of that library also wrote a miner, BFGMiner, that uses his library. Look at how he calls these libblkmaker function to add a coinbase transaction to the block header in miner.c.