Explaining all the details was a bad choice of words. The BIPS are of course detailed but it's harder to get an overview by of the full protocol by diving into each BIP. In that sense I find it easier to follow some sample source code.
I was looking for a plain cpuminer for this purpose. bfgminer is of course a good reference but it contains a lot of driver code for different miners as well as scrypt support.
Thank you for the pointer to the guide. I had some problems reproducing it. I will add a message in the thread describing my issues.
I've found some references to
https://en.bitcoin.it/wiki/Getblocktemplate which does not appear to be up to date since it does not include the segwit rules.
If I try to include it:
bitcoin-cli -rpcuser=MYUSER -rpcpassword=MYPASS -rpcport=5000 -rpcconnect=MY.NODE.IP.NR getblocktemplate '{"rules": ["segwit"], "capabilities": ["coinbasetxn", "workid", "coinbase/append"]}'|grep coinbase
"coinbaseaux": {
"coinbasevalue": 3041246,
The returned value does not look like the one in the wiki, e.g. there is no coinbasetxn. Of course it's not unlikely that I've got the json dictionary order/levels wrong in the above query. Also it might be that despite the coinbasetxn capabilities parameter it's allowed to return a coinbasevalue value instead. Where can I find a similar example using the coinbasevalue if the latter is the case?