How do I call getblocktemplate from C#'s bitcoinlib? How do I call getblocktemplate from the bitcoinlib package for C#?
This call does not work
ICoinService CoinService = new BitcoinService(useTestnet: true);
var blockTemplate = CoinService.GetBlockTemplate();
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.