mining pools – How do I call getblocktemplate from C#’s bitcoinlib?


var blockTemplate = CoinService.GetBlockTemplate( new { rules=new List<string> { "segwit" } });

This function call requires you to specify rules for the block you want to create and in newer Bitcoin Core version, you can only create blocks following the segwit softfork rules.