In the previous version of Nethereum (1.0.6), I was able to do something like this:
var miningResult = await web3.Miner.Start.SendRequestAsync(200);
Assert.IsTrue(miningResult);
In 2.0.0-rc5 I get an error: Web3 does not contain a definition of Miner How can I do the same in version 2.0.0-rc5?
- install nuget package with Geth
- then create and use Web3Geth
– Sydney Shown Jun 26 '17 at 04:38Install-Package Nethereum.Geth -Prevar web3Geth = new Web3Geth(); web3Geth.Miner.Start.SendRequestAsync(6);