How do I call getblocktemplate from C#'s bitcoinlib?
var blockTemplate = CoinService.GetBlockTemplate( new { rules=new List&lt;string&gt; { &quot;segwit&quot; } });

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.